I want to create a function like this
function myfunction($var1, $var2){
..........
..........
}
I know I can call this function by
echo myfunction(argument1,argument2);
am i right? If yes, now what I want is:
To use this function I have to pass 2 arguments; argument1 & argument2 as the function receives these agruments by $var1 & $var2 as parameter.
Now I want to use my function, user must have to provide 1st argument and the second argument is optional.
How I can make second argument optional for calling this function?
Thanks in advance
Best Regard:
Md. Zakir Hossain (Raju)
www.rubd.net
www.xenexbd.com
Cheap Hosting, Domain, Reseller
www.forum.rubd.net