标签: php html variables whitespace
我有php:$currencysymbol = "£"
$currencysymbol = "£"
后来我想在html中使用它来显示:£1 = xxxxx
£1 = xxxxx
但是如何摆脱符号与1?
$currencysymbol 1 = xxxxx //whitespace £ 1 $currencysymbol1 = xxxxx // unknown variable
答案 0 :(得分:2)
尝试
<?php echo $currencysymbol."1" = xxxxx; ?>