Lan
Lan

Reputation: 1892

remove whitespace between php variable and html characters

I have in php: $currencysymbol = "£"

And later I want to use it in html to show: £1 = xxxxx

But how do I get rid of the whitespace between the symbol and the 1?

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

Upvotes: 0

Views: 84

Answers (1)

GautamD31
GautamD31

Reputation: 28763

Try with

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

Upvotes: 2

Related Questions