func_name( ($s == '') ? 'True' : 'False', ($i == 3) ? '1' : '0');
if $s string is empty then how can we call the default value of the function argumment which i have writen when i was creating the function?
Unfortunately, default args don't work that way. You only get the default value if you call the function without the arg at all. In your case, your function needs to test the argument and, if null, set a value.
so there is no way to check the argument and if it's empty then display the default argument, because im using call_func to call the function, but i wanted to check if the string is empty then display the default value. Do you know how to do this another way?
If you don't specify the (n-1)th default argument, then you can't specify the nth argument. For example, if you want to use the default value of the second argument, you want be able to specify the third argument. e.g. you can't do this:
func('value', , 'value)
You can't just leave the second value without anything.
Read more about default args here: http://www.php.net/manual/en/functions.arguments.php
Diego