I am trying to create a content management system with SEO friendly URLs .. My problem is, that with htaccess I have made my URLs passed through $_GET['url'].
To get the arguments for “call_user_func_array” I am just exploding $_GET['url'] by /
I am allowing my users to create shorttag to the SEO-friendly URLS WITH slash (/) and therefore their shorttag will sometimes be passed as more arguments. Is there a way to collect all the arguments again inside the call class/function?
will give you an array of all arguments passed into the function. That’s actually undoing what you’ve done by using
call_user_func_array();