Metodo 1 :
Código PHP:
Ver original
if (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 original
echo <<< 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 ?