Codice PHP:
class Foo {
public function __toString() {
return implode(get_object_vars($this));
}
}
class Bar extends Foo {
public $one = 'One';
protected $two = 'Two';
private $three = 'Three';
}
$b = new Bar();
echo $b;
tutto regolare
![]()
Codice PHP:
class Foo {
public function __toString() {
return implode(get_object_vars($this));
}
}
class Bar extends Foo {
public $one = 'One';
protected $two = 'Two';
private $three = 'Three';
}
$b = new Bar();
echo $b;
tutto regolare
![]()
Without faith, nothing is possible. With it, nothing is impossible
http://ilwebdifabio.it