View Single Post
Old Feb 9th, 2007, 10:40 PM   #4
writephp
Newbie
 
Join Date: Jan 2007
Posts: 3
Rep Power: 0 writephp is on a distinguished road
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 is offline   Reply With Quote