Your question isn't 100% clear, but checking the function args as mentioned earlier is one approach.
Another approach I like to take every now and then is using argument defaults. Example:
function myfunc($var1, $var2 = 'Yo', $var3 = false)
Here, I can do:
myfunc('var1 string'); // works ($var2 = 'Yo', $var3 = false)
myfunc('var1 string', 'var2 string'); // works ($var2 = 'var2 string', $var3 = false)
myfunc('var1 string', 'var2 string', true); // works (all 3 vars specified when function called)
Depending on what your ultimate goal is, this might help or it might not.