custom function but properties optional.
Posted: Sat Jun 23, 2007 11:00 am
hello, having a little trouble with a custom function.
i want the properties of it to be optional, by that i mean:
the variables between the () i would like to be optional so i dont get the undefined variable notice.
how can i say that, or cant i?
ive looked on the manual but cant see anything.
thanks.
i want the properties of it to be optional, by that i mean:
Code: Select all
function displayRegForm($username, $email, $ad1, $ad2, $ad3, $postcode){
}how can i say that, or cant i?
ive looked on the manual but cant see anything.
thanks.