note 10618 added to Variable scope

From: Date: Fri, 12 Jan 2001 17:45:33 +0000
Subject: note 10618 added to Variable scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-9718@lists.php.net to get a copy of this message
You can make function argument variables global: function foo ($bar) { global $bar; # ... more code. } Opposite to php3, php4 doesn't warn you if you do this. http://www.php.net/manual/language.variables.scope.php

« previous php.notes (#9718) next »