Re: [PHP] returning value to variable

2004-02-14 Thread tg
Bao Ruixian wrote: tg wrote: hi i need returning value of function as a variable example : function 1 () { return "some error"; } function 2 () { $v = 1(); if ( $v != '' ) echo "error"; } it doesn't work this way Are you using 1 and 2 as the function names in your real applicati

Re: [PHP] returning value to variable

2004-02-14 Thread BAO RuiXian
tg wrote: hi i need returning value of function as a variable example : function 1 () { return "some error"; } function 2 () { $v = 1(); if ( $v != '' ) echo "error"; } it doesn't work this way Are you using 1 and 2 as the function names in your real application? Hope not, becaus

[PHP] returning value to variable

2004-02-14 Thread tg
hi i need returning value of function as a variable example : function 1 () { return "some error"; } function 2 () { $v = 1(); if ( $v != '' ) echo "error"; } it doesn't work this way this works : echo 1(); but i need the string value as a variable thanks -- PHP General Mailing Lis