Function Overloading
| From: | Labunski | Date: | Sun, 18 Dec 2005 02:22:50 +0000 |
| Subject: | Function Overloading | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-227582@lists.php.net to get a copy of this message | ||
"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!