I am trying to create my own little MVC system, its working very well, but one thing i have problems with is parsing variables to methods.
You see i use URL rewritting to make every url point at index.php, and then set up the page by the url data like /email/1/34/
I am then creating an object such as here.
<?php
$page = $urlsplit[0];
$variables = array($urlsplit[1], $urlsplit[2]);
$page->callmethod($variables);
?>
What i want it to do is that instead of parsing the array to the method, it should do it like this.
$page->callmethod($variables[0], $variables[1]);
Any idea how i can do this?