06-15-2008, 04:14 PM
|
#3 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Location: On your Hard Drive, hiding like a Virus
Posts: 774
Thanks: 154
|
Quote:
Originally Posted by Salathe
PHP Code:
function myfunction($myarg = 'default')
{
echo 'You specified, ', $myarg, '<br>';
}
myfunction('a custom value');
myfunction();
|
That would output a custom value on the first function return, and default on the second return.
__________________
Wax on, Wax off
|
|
|
|