04-20-2010, 08:59 PM
If you're creating a hook for a template and want to use HTML without wrapping an echo() around it, here's how you do it.
Simply start with a PHP close tag, add your HTML, and use the PHP open tag at the end, here's an example:
Simply start with a PHP close tag, add your HTML, and use the PHP open tag at the end, here's an example:
PHP Code:
?>
<div>
Here is my HTML for <?php echo $project['name']; ?>.
</div>
<?php