- implode: documentation ( source)
<?php
class Lazy{
public function __call($method, $arguments){
$arguments = implode(', ', $arguments);
echo 'Call to method '.$method.'() with arguments '.$arguments.' failed';
}
}
$lazy = new Lazy();
$lazy->a('foo', 'bar'); // Call to a() with arguments foo, bar failed