ollie007 Posted June 11, 2009 Share Posted June 11, 2009 function name($var=''){} is that how its done/ Quote Link to comment Share on other sites More sharing options...
trq Posted June 11, 2009 Share Posted June 11, 2009 Try the function manual. Quote Link to comment Share on other sites More sharing options...
ollie007 Posted June 11, 2009 Author Share Posted June 11, 2009 you aint being very helpful ! Quote Link to comment Share on other sites More sharing options...
haku Posted June 11, 2009 Share Posted June 11, 2009 function example_function($var1 = 'one', $var2 = 2) { // do function stuff here } This will set a default value of 'one' for $var1, and '2' for $var2, if they aren't set in the function call. Quote Link to comment Share on other sites More sharing options...
trq Posted June 11, 2009 Share Posted June 11, 2009 you aint being very helpful ! What exactly do you mean? Every question you have asked in the last few days is covered in detail in the manual. Same with this one. Learn to read it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.