eval uquestion
| From: | chetan rane | Date: | Wed, 19 Mar 2008 19:22:11 +0000 |
| Subject: | eval uquestion | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-271843@lists.php.net to get a copy of this message | ||
HI All
I have the follwoing code
function cleanufx($str){
return ucase($str);
}
$value="xyz";
$var ="ufx";
$fn="clean$var($value);
$val =eval("$fn;");
echo $val;
can anyone tell me what is wrong in this as the eval is returning 0 (false);
--
Have A pleasant Day
Chetan. D. Rane
Location: India
Contact: +91-9986057255
other ID: chetscool@yahoo.com
chetrane@rediffmail.com