标签: php mysql
我正在尝试编写一个回显来回显一个变量和一个rtrim函数,但我似乎无法使语法正确。任何人都可以帮助如何正确地写这条线?
if ($str == ""){echo "$tech_name";} else echo "$tech_name" rtrim($str,",");
答案 0 :(得分:0)
连接rtrim?
else { echo "$tech_name" . rtrim($str,","); }