I have a function that uses its own params but also checks if any get/post values are avaliabe for different behavior.
I’d like to be able to do that in the home page, which url is: domain.com/
For example:
function simulate_get($name,$val){
// do it
}
And then, in code
..
simulate('foo','last_posts');
show_user_posts($user,$bla,$ble);
..
I know that I should add an extra paramerter to the function but still wondering if is actually posible in PHP to do that.
Just write to it: