Function and return...

From: Date: Thu, 27 Jul 2000 10:12:11 +0000
Subject: Function and return...
Groups: php.general 
Request: Send a blank email to php-general+get-8513@lists.php.net to get a copy of this message
Function and return... The following code works fine: print $HTTP_COOKIE_VARS[$cookie_name]; The following code on the same place does not (an empty string is printed): print getCookie($cookie_name); function getCookie($name) { return $HTTP_COOKIE_VARS[$name]; } Why ? Regards Martin

« previous php.general (#8513) next »