Hi,

2012/4/18 Stas Malyshev <smalys...@sugarcrm.com>:
> Hi!
>
>> Since func_num_args() won't be able to be used to see if an argument is set, 
>> could a func_isset_arg() be added? So something like:
>> if(func_num_args() > 2) $value = func_get_arg(2);
>> would become:
>> if(func_isset_arg(2)) $value = func_get_arg(2);
>
> I think it's easier to just do func_get_args() and check for isset there
> :) You usually don't have too many args so getting all of them is not a
> big problem.

This works.
I think it's fine with this.

There may be a few codes that have BC issues, but
it's new PHP anyway.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to