RE: [PHP] Speaking of Global Annoyance
| From: | Jason Murray | Date: | Mon, 18 Dec 2000 23:54:00 +0000 |
| Subject: | RE: [PHP] Speaking of Global Annoyance | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30962@lists.php.net to get a copy of this message | ||
> or you could:
> function getimages(){
> global $imagename;
> ...
> }
Actually, if you haven't previously defined the variable I've found
that this doesn't work.
<? $imagename = ""; ?> before you call the function will fix it, tho.
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Design Team, Melbourne IT
Fetch the comfy chair!