Reply to thread

Hi, in asp i can output a variable like this:


<div><span><%= myvar %></span></div>


How do i do this with php. I can do it but its horrid. I have to echo out the lines... like


echo '<div><span>'; echo $myvar; echo '</span></div>';


Does a better way not exist?


Loading…
Back
Top