function named_print($var_name) {
  return "echo 'the variable named $var_name is set to ' . \$var_name;"
}

eval(named_print($foo));

;-)

Tyler

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

Reply via email to