Categorized | News

Echoing Variables the Short Way

Posted on 13 October 2001 by Demian Turner

Another idea that many PHP developers are picking up on to keep their code clean – the short way to echo variables.

When you need to echo a PHP variable in the middle of a block of HTML code, the normal procedure is to open the PHP tags before the variable, and print it out using the echo command. There is an alternative shorthand way of doing this (that also works in JSP and Broadvision) click read more for the diagram.

Bookmark and Share

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook