note 9352 added to echo
| From: | hdesiato at yahoo dot com | Date: | Sat, 28 Oct 2000 18:07:30 +0000 |
| Subject: | note 9352 added to echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7147@lists.php.net to get a copy of this message | ||
Here's a function useful for debugging. It'll display a variable's name along with
its value:
function show($var_name)
{
global $$var_name;
printf("<br>$%s=\"%s\"<br>", $var_name, $$var_name);
return 1;
}
http://www.php.net/manual/function.echo.php