Hola , tengo una duda, sin usar plantillas, cual de estas formas seria mejor para mostrar mucho codigo HTML , para ser legible :
Metodo 1 :
Código PHP:
Ver originalif (is_single()) {
//now we just close PHP tag
?>
</style>
<script>
<blah blah blah>
<?php
//open it back. here is your PHP again. easy!
}
?>
Metodo 2 :
Código PHP:
Ver originalecho <<< EOT
in here is your string
it has the same variable substitution rules
as a double quoted string.
when you end it, put the indicator word at the
start of the line (no spaces before it)
and put a semicolon after it
EOT;
El primero me queda raro pero es comodo y el segundo no me convence, pero lei que se usan mucho las dos formas.
¿ Cual es mejor ?