Re: array in and out

From: Date: Mon, 20 Aug 2001 03:03:42 +0000
Subject: Re: array in and out
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63444@lists.php.net to get a copy of this message
In article <010101c1291b$378fa0a0$0200a8c0@no.shawcable.net>, chris@hubcityhosting.com (Chris Schneck) wrote: > function print_keywords() > { > echo ($mykewords); > } $mykeywords is a global var; it's undefined in the function's local scope. Either pass it into the function as a parameter, add it to the $GLOBALS array, or declare it as global within the function. <http://php.net/global> -- CC

« previous php.general (#63444) next »