Re: Parameter to function

From: Date: Fri, 28 Jun 2002 15:28:14 +0000
Subject: Re: Parameter to function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104345@lists.php.net to get a copy of this message
On Friday 28 June 2002 23:09, Peter wrote: > Hello, > > I Found this in the internet.... > > function CheckEmail($Email = "") > > what does this function do with the parameter i sned to this function? > normaly when i make a function it would be like this, It means if you call CheckEmail() but don't specify $Email then $Email will be set to "". Eg: function doo($dah = "Hello") { echo $dah; } doo(); // prints "Hello" > and i have never seen > this way of making function before. Manual > Functions (where else?) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The man who runs may fight again. -- Menander */

« previous php.general (#104345) next »