Menu
Hi All,
Could you please tell me what mistake am I doing with the following function?
#####
function salutation($sex1)
{
if ($sex1=”female”) $out= “Ms. “;
else $out= “Mr. “;
return $out;
}
#####
This function is giving output “Ms. ” irrespective of the input. Am I doing any silly mistake?
Thanks in advance,
Regards,
Anirban.