Magento Forum

Concatenate Strings with Line Breaks
 
brendanb
Mentor
 
Total Posts:  1093
Joined:  2008-07-16
London, United Kingdom
 

hi All,

Can anyone suggest some code to do the following

I have a Javascript Rollover Pop-Up with will contain some product Data. What I would like to do is combine multiple variables and insert Line Breaks. Here is the code i have, but i dont think this is correct

<?php $_tooltip $this->htmlEscape($_productRandom->getName(). "<p>") .$this->htmlEscape($_productRandom->getPrice()) ?>

I would like something like

Product Name
Product Description
Product Price

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top