[Pugged] Function variable question

Chris Hettinger ciapug@ciapug.org
Fri, 22 Nov 2002 10:29:59 -0600


This is a multi-part message in MIME format.

------_=_NextPart_001_01C29244.668FF1FA
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

function getfunky($var1, $var2, $var3){
  // how to get funky
}
=20
Q: $var3 is something that may not get used every time I use this =
function. I am curious how to make this variable optional?
=20
-Chris

------_=_NextPart_001_01C29244.668FF1FA
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.50.4916.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial =
size=3D2>function=20
getfunky($var1, $var2, $var3){</FONT></SPAN></DIV>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial size=3D2>&nbsp; =
// how to get=20
funky</FONT></SPAN></DIV>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial=20
size=3D2>}</FONT></SPAN></DIV>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial size=3D2>Q: =
$var3 is=20
something that may not get used every time I use this function. I am =
curious how=20
to make this variable optional?</FONT></SPAN></DIV>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D493112816-22112002><FONT face=3DArial=20
size=3D2>-Chris</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01C29244.668FF1FA--