【问题标题】:remove whitespace between php variable and html characters删除 php 变量和 html 字符之间的空格
【发布时间】:2013-05-30 09:05:00
【问题描述】:

我在 php 中有:$currencysymbol = "£"

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

但是如何去掉符号和 1 之间的空白呢?

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

【问题讨论】:

  • 在 html 中用作 .

标签: php html variables whitespace


【解决方案1】:

试试

<?php
     echo $currencysymbol."1" = xxxxx;
?>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-19
    • 2015-06-15
    • 1970-01-01
    • 2016-11-27
    • 2012-01-17
    相关资源
    最近更新 更多