Skipping function arguments!
| From: | Vedanta Barooah | Date: | Thu, 28 Apr 2005 06:53:20 +0000 |
| Subject: | Skipping function arguments! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-214061@lists.php.net to get a copy of this message | ||
Hello All,
Cosider this :
function add($a=1,$b=2,$c=3){
return $a + $b + $c;
}
how do i skip the second argument while calling the function, is there
a process like this:
echo add(1,,1); # where i expect 2 to be printed,
how do i xcheive this.... m totally lost ! :((
Thanks,
Vedanta