
Untitled
By: a guest on Jan 28th, 2012 | syntax:
LOL Code | size: 0.33 KB | hits: 48 | expires: Never
<?php
class methodTest
{
public function __call($test1, $test2)
{
if ($test1 == null)
{
echo "no param passed !";
}
else
{
echo "argument $test1 passed !";
}
}
}
$obj=new methodTest();
$obj->runtest();
?>