I am a little surprised that the following that $x is visible outside of the
scope in
which it is (?)defined(?) (not sure if that is the correct term here). I am
trying
to find where in the php docs that this is discussed. Haven't found anything
yet.
Any help appreciated.
I am also assuming that the following scoping rule holds for other
constructs
as well.
Thanks, Mike.
if(true)
{
$x= '_hello';
}
if(false)
{
}
else
{
$x= $x.'_world';
}
echo $x;
//output: _hello_world_
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----