note 68888 deleted from language.variables.scope by nlopess
| From: | nlopess@php.net | Date: | Mon, 14 Aug 2006 22:45:23 +0000 |
| Subject: | note 68888 deleted from language.variables.scope by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115916@lists.php.net to get a copy of this message | ||
Note Submitter: anonymous at anonymous dot com
----
$var = "original";
$array = array(1,2,3);
foreach ($array as $var)
{
echo $var;
}
echo $var; # you're screwed -- no object scope