Thursday, 22 August 2013

Php syntax alternatives?

Php syntax alternatives?

Are there any way to use this alternative syntax?
<div class="lines-rates">
<?php foreach($info as $k => $v){ echo : ?>
<div><span>{$k}</span>{$v}</div><?php ; } ?>
</div><!-- #lines -->
I mean
<?php echo : ?><p>this is your {$username} And this html code could be
more than one line and sure other html elements also</p><?php endecho; ?>
So we can easily see html code.

No comments:

Post a Comment