<?php interface Foo { public function blah($param); } class Bar implements Foo { public function blah($param, $optional = null) { if (2 === func_num_args()) { return '2 params'; } return '1 param'; } } $bar = new Bar(); var_dump($bar->blah('aaa')); var_dump($bar->blah('aaa', 'bbb'));
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`