Skipping function arguments!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux