<?php
interface Example
{
public function test();
}
class MyExample implements Example
{
public function test()
{
$args = func_get_args();
if (empty($args)) {
echo 'No arguments given';
return;
}
foreach($args as $k => $v) {
echo "Arg $k given with $v.";
}
}
}
$a = new MyExample();
$a->test();