I am trying to write an echo to echo a variable and a rtrim function but I can't seem to get the syntax right. Can anyone help with how to write this line correctly?
if ($str == ""){echo "$tech_name";}
else echo "$tech_name" rtrim($str,",");
I am trying to write an echo to echo a variable and a rtrim function but I can't seem to get the syntax right. Can anyone help with how to write this line correctly?
if ($str == ""){echo "$tech_name";}
else echo "$tech_name" rtrim($str,",");
Concatenate the rtrim?
else {
echo "$tech_name" . rtrim($str,",");
}