> > Can you practice function over-loading in php?
> 
> No you cannot overload in PHP.

You can achieve the same effect (having the same function do
something else in a different circumstance) by making
parameters optional:

<?
   Function functionName($param1, $param2 = "")
   {
     ...
   }
?>

$param1 is required, $param2 is optional - if its not
supplied when the function is called, it will be "".

J

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

Reply via email to