note 30606 added to function.ini-get-all
| From: | chevick_1776 at yahoo dot com | Date: | Sun, 23 Mar 2003 21:16:21 +0000 |
| Subject: | note 30606 added to function.ini-get-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45699@lists.php.net to get a copy of this message | ||
I wanted to use this function just to check a few things. Unlike many other functions in these
pages, there was no 'ready to use' chunk of code I could copy to display the info....until
now.
<?php
$a= ini_get_all(); //Call ini_get_all()
$output="<table border=1>"; //Start an output string
while(list($key, $value)=each($a)) //Loop through results
{
list($k, $v)= each($a[$key]); //Access each array
$output.="<tr><td>
$key
</td><td>
$v
</td><td>
$k
</td></tr>"; //Build output
}//while
$output.="</table>"; //Finish up
echo $output; //Spit it all out
?>
Don Maciejewski
webmaster - http://insideouttattoo.com
--
http://www.php.net/manual/en/function.ini-get-all.php
http://master.php.net/manage/user-notes.php?action=edit+30606
http://master.php.net/manage/user-notes.php?action=delete+30606
http://master.php.net/manage/user-notes.php?action=reject+30606