Rasmus Lerdorf wrote:
Daevid Vincent wrote:

Is there a way to get the name of a variable as a string? For example...


Nope, not possible.

Well....

ob_start();
echo '$var';
$contents = ob_get_contents();
ob_end_clean();

echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to