我想显示下面显示的数组中的值,如何在 PHP 中编写语法来显示结果?
我想显示下面显示的数组中的值,如何在 PHP 中编写语法来显示结果?
这就是我得到下面数组的方式
现在我的要求是获取“osCsid”的值,请帮助我......
echo "<pre>";
var_dump($_SESSION["navigation"]);
object(navigationHistory)#2 (2) {
["path"]=>
array(4) {
[0]=>
array(4) {
["page"]=>
string(10) "logoff.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(0) {
}
["post"]=>
array(0) {
}
}
[1]=>
array(4) {
["page"]=>
string(9) "index.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(1) {
["osCsid"]=>
string(26) "m3gvb90q0c36p7chtiq6pksrs6"
}
["post"]=>
array(0) {
}
}
[2]=>
array(4) {
["page"]=>
string(11) "account.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(1) {
["osCsid"]=>
string(26) "m3gvb90q0c36p7chtiq6pksrs6"
}
["post"]=>
array(0) {
}
}
[3]=>
array(4) {
["page"]=>
string(24) "account_history_info.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(2) {
["order_id"]=>
string(3) "491"
["osCsid"]=>
string(26) "m3gvb90q0c36p7chtiq6pksrs6"
}
["post"]=>
array(0) {
}
}
}
["snapshot"]=>
array(0) {
}
}
I want to display the value from the array displayed below, how to write a syntax in PHP to get the result display?
This is how I got the below array
Now my requirement is to get the value of "osCsid", please help me out...
echo "<pre>";
var_dump($_SESSION["navigation"]);
object(navigationHistory)#2 (2) {
["path"]=>
array(4) {
[0]=>
array(4) {
["page"]=>
string(10) "logoff.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(0) {
}
["post"]=>
array(0) {
}
}
[1]=>
array(4) {
["page"]=>
string(9) "index.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(1) {
["osCsid"]=>
string(26) "m3gvb90q0c36p7chtiq6pksrs6"
}
["post"]=>
array(0) {
}
}
[2]=>
array(4) {
["page"]=>
string(11) "account.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(1) {
["osCsid"]=>
string(26) "m3gvb90q0c36p7chtiq6pksrs6"
}
["post"]=>
array(0) {
}
}
[3]=>
array(4) {
["page"]=>
string(24) "account_history_info.php"
["mode"]=>
string(6) "NONSSL"
["get"]=>
array(2) {
["order_id"]=>
string(3) "491"
["osCsid"]=>
string(26) "m3gvb90q0c36p7chtiq6pksrs6"
}
["post"]=>
array(0) {
}
}
}
["snapshot"]=>
array(0) {
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或类似的东西
or something similar