06-15-2008, 04:14 PM
|
#3 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
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.
__________________
VillageIdiot can have my babbies ;d
|
|
|
|