Thread
:
Function Parameters
View Single Post
Feb 9th, 2007, 10:40 PM
#
4
writephp
Newbie
Join Date: Jan 2007
Posts: 3
Rep Power:
0
you could just set it to null in the function
so for instance
function something($var1,$var2,$var3,$var4=NULL){
}
so say you have to declare 1 2 and 3 and then 4 is set to null unless otherwise assigned
__________________
Learn PHP & MySQL
http://www.writephp.net
-----------------------------------------------------
For Sale
http://www.phantomdown.com
writephp
View Public Profile
Find More Posts by writephp