print variable
Posted: Wed Apr 28, 2010 4:00 pm
Hi. I'm totally new to php but have done a lot of web-dev with perl mason, which works in a similar way.
I'm wondering about some "parallel functionality". In a mason file, you can include a variable like this:
Right now, with my complete ignorance of php, I having to do this:
Which is a lot more long winded. Is there a simpler way to output a variable, al la the mason method?
I'm wondering about some "parallel functionality". In a mason file, you can include a variable like this:
Code: Select all
<p><%$var_name%></p>
Code: Select all
<p><?php printf("%s", $var_name) ?></p>