SHARE
TWEET

Dave

a guest Nov 25th, 2010 180 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class A { }
  4. class B { }
  5.  
  6. class Test
  7. {
  8.     public function doIt(B $obj)
  9.     {
  10.         return "OK";
  11.     }
  12. }
  13.  
  14. $a = new A();
  15. $b = new B();
  16. $test = new Test();
  17. echo $test->doIt($a)."\n";
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top