0

我在 php 中:$currencysymbol = "£"

后来我想在html中使用它来显示:£1 = xxxxx

但是如何摆脱符号和 1 之间的空格?

$currencysymbol 1 = xxxxx //whitespace £ 1
$currencysymbol1 = xxxxx // unknown variable
4

1 回答 1

2

尝试

<?php
     echo $currencysymbol."1" = xxxxx;
?>
于 2013-05-30T09:06:10.737 回答