note 19060 added to functions

From: Date: Thu, 14 Feb 2002 11:57:10 +0000
Subject: note 19060 added to functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-26608@lists.php.net to get a copy of this message
As a corollary to other people's contributions in this section, you have to be careful when transforming a piece of code in to a function (say F1). If this piece of code contains calls to another function (say F2), then each variable used in F2 and defined in F1 must be declared as GLOBAL both in F1 and F2. This is tricky. -- http://www.php.net/manual/en/functions.php http://master.php.net/manage/user-notes.php?action=edit+19060 http://master.php.net/manage/user-notes.php?action=delete+19060 http://master.php.net/manage/user-notes.php?action=reject+19060

« previous php.notes (#26608) next »