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? Link to comment https://forums.phpfreaks.com/topic/184805-dynamically-loading-a-function/ 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 Link to comment https://forums.phpfreaks.com/topic/184805-dynamically-loading-a-function/#findComment-975612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.