Re: [PHP] eval uquestion

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 3:22 PM, chetan rane <[EMAIL PROTECTED]> wrote: > 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 anyo

[PHP] eval uquestion

2008-03-19 Thread chetan rane
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. Ra