| Posted by FFMG on 08/01/07 08:11 
Hi,
 I was looking at
 http://www.php.net/manual/en/function.call-user-func-array.php and I
 was wondering...
 
 Given,
 // --
 function foo( &$params)
 {
 echo 'bar';
 }
 // --
 
 What is the difference between
 
 // --
 $params = array( $stuff);
 $myFn = 'foo';
 $myFn($params)
 // --
 
 And
 
 // --
 $params = array( $stuff);
 $myFn = 'foo';
 call_user_func_array( $myFn, $params );
 // --
 
 Wont they both achieve the same result?
 
 FFMG
 
 
 --
 
 'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
 (http://www.journalhome.com/) | 'webmaster Directory'
 (http://www.webhostshunter.com/)
 'Recreation Vehicle insurance'
 (http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
 redirection service' (http://urlkick.com/)
 ------------------------------------------------------------------------
 FFMG's Profile: http://www.httppoint.com/member.php?userid=580
 View this thread: http://www.httppoint.com/showthread.php?t=18946
 
 Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).
 [Back to original message] |