note 20406 added to language.variables.scope

From: Date: Wed, 03 Apr 2002 01:03:29 +0000
Subject: note 20406 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-28522@lists.php.net to get a copy of this message
This is intuitively obvious but I think it's worth mentioning that static vars are initialized only on the first function invocation, not reinitialized each time, which would kind of defeat their purpose. This could confuse beginners. -- http://www.php.net/manual/en/language.variables.scope.php http://master.php.net/manage/user-notes.php?action=edit+20406 http://master.php.net/manage/user-notes.php?action=delete+20406 http://master.php.net/manage/user-notes.php?action=reject+20406

« previous php.notes (#28522) next »