returning value to variable
| From: | tg | Date: | Sat, 14 Feb 2004 13:59:22 +0000 |
| Subject: | returning value to variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-177703@lists.php.net to get a copy of this message | ||
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