Just be aware that POST/GET/COOKIE data is always saved as a string. So if
someone sends you 2 it'll be the string "2".
If the arguments to your function won't originate from the above but are
written by the developer then overloading will work well. If not you might
want to consider splitting
On Sat, Jan 05, 2002 at 02:10:17PM -0600, Brian Foddy wrote :
> 2. Overload the function arguments and check which type of arg is being
>passed.
Just accept a ZVAL and do your appropriate conversion later
on.
>
> Questions...
> 2. How difficult / successful is it to test the arg t
In an external php module project (php-tuxedo),
we have a group of about 7 php functions that,
depending on how we design them, could take two different types
of arguments.
1. A integer argument
2. A string argument.
If the string argument is given, there is another routine that can
convert it