<?php
class X {
public function foo() {
echo "foo";
}
}
function foo() {
echo "global foo";
}
X:foo();
This will happily print "global foo" on your screen. No complaints by the parser (nor by NetBeans or PHPStorm...)
In case you're wondering why this is strange, take a look at the T_ACHAT_NEKUDA between X and foo().
Yay.
Keine Kommentare:
Kommentar veröffentlichen