Hi, I'm coding in PHP5 (ok, it is in pre-alpha-beta-other). I have read
about Function scope and if I do not wrong:
Class Foo {
Function Bar()
{
print "Bar";
}
Function Bar2()
{
Bar();
}
}
$f = new Foo();
$f->Bar2();
and it write "Bar". I want to know if this type of scope is equal for the
variable:
Class Foo {
var $foo2;
Function Bar()
{
echo $foo2."\n";
print "Bar";
}
Function Bar2()
{
$foo2="foo2";
Bar();
}
}
Tnx.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php