I have a function with multi parameters and I want to call it in several places in my code. How can I call it with some default values like:
Addhistory($h_id, $h_name, $user_id=0, status=true)
So user_id and statue will have default values when we will not pass it?
Thanks.
($h_id,$h_name,$user_id=0,status=true)this will do same what you want. isn't it?