E' __CLASS__ che è legato alla classeCodice PHP:class Foo {
public function __toString() {
return get_class($this);
}
}
class Bar extends Foo {}
$b = new Bar();
echo $b;
non il metodo __toString.
![]()
E' __CLASS__ che è legato alla classeCodice PHP:class Foo {
public function __toString() {
return get_class($this);
}
}
class Bar extends Foo {}
$b = new Bar();
echo $b;
non il metodo __toString.
![]()
Without faith, nothing is possible. With it, nothing is impossible
http://ilwebdifabio.it