Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: LOL Code  |  size: 0.33 KB  |  hits: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. <?php
  2. class methodTest
  3.     {
  4.     public function __call($test1, $test2)
  5.         {
  6.         if ($test1 == null)
  7.             {
  8.             echo "no param passed !";
  9.             }
  10.         else
  11.             {
  12.             echo "argument $test1 passed !";
  13.             }
  14.         }
  15.     }
  16.  
  17. $obj=new methodTest();
  18. $obj->runtest();
  19. ?>