Perad Posted December 11, 2009 Share Posted December 11, 2009 Hi! Was wondering, how do I dynamically load a function? For example... /class/function/var1/var2 The easy bit is by exploding the string. 0 is the class 1 is the function but if the number of variables is anything between 1 and 10 how do I dynamically put them into the function? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 11, 2009 Share Posted December 11, 2009 I think you are looking for this http://php.net/manual/en/function.call-user-func-array.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.