I am using this code to store HTML code in a variable called $conversions
$conversions = "GBP " . number_format($file*0.84) . "CHF " . number_format($file*1.23)
However I can't seem to figure out how to add a <br>
before the word "CHF ".
Any ideas?
The whole code is as follows:
<?php
$file = get_field('fl_price');
if(trim($file) == ""){echo 'Price on Application' ;}else{$conversions = "GBP " . number_format($file*0.84) . "<br />CHF " . number_format($file*1.23) ;echo 'EUR ' . number_format($file) . "</br><a class=\"wp-tooltip\" title=\" $conversions \">Other Currencies</a>" ;}
?>
CHF "`? Also, try reading about [what makes a good question](http://stackoverflow.com/help/how-to-ask). Help us to help you. – Oct 06 '13 at 23:37
`. Seeing many outdated/wrong answer. Better thread here: http://stackoverflow.com/questions/246438/newline-in-td-title – ficuscr Aug 24 '16 at 18:04