note 70870 deleted from function.gd-info by nlopess
| From: | nlopess@php.net | Date: | Sat, 13 Oct 2007 10:55:59 +0000 |
| Subject: | note 70870 deleted from function.gd-info by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131358@lists.php.net to get a copy of this message | ||
Note Submitter: thorerik dot lie at gmail dot com
----
i made this small easy but usefull pice of code to show the different GD functions that gd_info
dumps.
<?php
$array = gd_info();
foreach ($array as $key => $val)
{
if ($key != "GD Version") {
if ($val == true || $val == false) {
if ($val == true) {
$val = "Enabled";
}
elseif ($val == false)
{
$val = "Disabled";
}
}
}
echo "$key: $val <br>";
}
?>