Re: Function with Optional Arguments

From: Date: Wed, 21 Jul 2004 19:01:39 +0000
Subject: Re: Function with Optional Arguments
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191377@lists.php.net to get a copy of this message
check this link simple example http://perl.about.com/library/weekly/aa121002c.htm On Wed, 21 Jul 2004 13:39:32 -0500, Alex Hogan <alex.hogan@alliedelec.com> wrote: > Hi All, > > How do I write a function with optional arguments? Is it possible in > php? > > function myfunc($First, $Second,[$Third, $Fourth]){ > some stuff here > } > > alex hogan > > ************************************************************************************* > The contents of this e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom it is addressed. The > views stated herein do not necessarily represent the view of the company. If you are > not the intended recipient of this e-mail you may not copy, forward, disclose, or > otherwise use it or any part of it in any form whatsoever. If you have received this > e-mail in error please e-mail the sender. > ************************************************************************************* >

« previous php.general (#191377) next »