Advertisement
Guest User

Callback javítások - PHP 5.4

a guest
Oct 4th, 2011
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. class Teszt
  2. {
  3.    public function proba()
  4.    {
  5.       echo 'Kecske.';
  6.    }
  7. }
  8.  
  9. $teszt = new Teszt();
  10. $proba = array($teszt, 'proba');
  11.  
  12. // call_user_func($proba);
  13. $proba(); // Kecske.
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement