|
Posted by "Labunski" on 12/18/05 04:22
"PHP does not support function overloading."
So, is there any other way of getting a number of parameters(variables)
passed to a function?
aka.
function fruits($apple, $banana, $kiwi, $grape){
#should (somehow) output 4
}
OK. if it was an array, than I could use count($array), but now I'm stuck!
Thanks in advance!
Navigation:
[Reply to this message]
|