PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php class FOO { public function bar() { echo "Method bar called" . PHP_EOL; return $this; } public function baz() { echo "Method baz called" . PHP_EOL; return $this; } } $foo = new FOO; $foo->bar()->baz();
Show:  
Copy Clear