note 114915 added to function.phpinfo
| From: | cbar at vmait dot com | Date: | Sat, 26 Apr 2014 01:05:44 +0000 |
| Subject: | note 114915 added to function.phpinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199331@lists.php.net to get a copy of this message | ||
<?php
// NOTE: When accessing a element from the above phpinfo_array(), you can do:
$array = phpinfo_array();
// This will work
echo $array["General"]["System "];
// This should work also, but it doesn't because there is a space after System in the array.
echo $array["General"]["System"];
// I hope the coder will fix it, so as to save someone else from wasting time. Otherwise, nice
script.
?>
----
Server IP: 192.41.45.111
Probable Submitter: 24.110.96.186
----
Manual Page -- http://php.net/manual/en/function.phpinfo.php
Edit -- https://master.php.net/note/edit/114915
Del: integrated -- https://master.php.net/note/delete/114915/integrated
Del: useless -- https://master.php.net/note/delete/114915/useless
Del: bad code -- https://master.php.net/note/delete/114915/bad+code
Del: spam -- https://master.php.net/note/delete/114915/spam
Del: non-english -- https://master.php.net/note/delete/114915/non-english
Del: in docs -- https://master.php.net/note/delete/114915/in+docs
Del: other reasons-- https://master.php.net/note/delete/114915
Reject -- https://master.php.net/note/reject/114915
Search -- https://master.php.net/manage/user-notes.php