passing return value from fucntion

From: Date: Fri, 18 Mar 2005 07:33:13 +0000
Subject: passing return value from fucntion
Groups: php.general 
Request: Send a blank email to php-general+get-211014@lists.php.net to get a copy of this message
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

« previous php.general (#211014) next »