RE: [PHP] Scope of variables in php

From: Date: Thu, 03 Aug 2000 22:18:44 +0000
Subject: RE: [PHP] Scope of variables in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10203@lists.php.net to get a copy of this message
> after this, the first echo works fine, while the second echoes > nothing as if $myVar was undefined. Unless you or a piece of code has undefined it, and you haven't changed scope (not in a new function) Then it should still exist.... strange. I have not experienced, nor do I seriously believe that PHP4 would put a if { } block in a different scope. John > Is this a new feature in php4 ? Is this a bug in the windows version > of php (running as a cgi, IIS4 + WinNT server) ? I think I'll > double-check my code but I'm pretty sure there's something strange... > > Thanks... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#10203) next »