Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars.
Monty
Why not just unset the variables you don't want in the list?
<?php
$uservars = get_defined_vars(); unset ($uservars['_SERVER']); unset ($uservars['_ENV']); // etc.
?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php