passing return value from fucntion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
Just simple question (I think?)

How to pass return value from function to the main program?

Here's example:
do some code in funtion to set the $res value:

} elseif ($rightsid == $oik6) {
   $res = ok;
   return $res;
} elseif ($rightsid == $oik7) {
   $res = notok;
   return $res;
}

How can I get to use the  $res in the main program. The return $res; doesn't 
pass the variable to the main program right?

Thanks
-Will

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux