note 20122 added to function.include

From: Date: Fri, 22 Mar 2002 23:24:24 +0000
Subject: note 20122 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-28104@lists.php.net to get a copy of this message
For the author of themyInclude function, your code could introduce small bugs since the include runs in the scope of the myInclude function. A variable $foo in an included file will reference $foo in myInclude(), not in the calling function -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+20122 http://master.php.net/manage/user-notes.php?action=delete+20122 http://master.php.net/manage/user-notes.php?action=reject+20122

« previous php.notes (#28104) next »