Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/01/2007, 20:46
Avatar de Nefertiter
Nefertiter
 
Fecha de Ingreso: enero-2003
Ubicación: Rosario
Mensajes: 1.316
Antigüedad: 21 años, 3 meses
Puntos: 9
Re: $variable=<<<eof

es simplemente una manera de asignar contenido a una variable sin tener que ponerlo entre comillas

aca hay 2 codigos equivalentes para que veas

Código PHP:
<?php
$html 
"
<table border=\"1\">
<tr>
<td style=\"x\">
$content
</td>
</tr>
</table>
"
;
echo(
$html);
?>

Código PHP:
<?php
$html 
= <<< EOH
<table border="1">
<tr>
<td style="x">
$content
</td>
</tr>
</table>
EOH;
echo(
$html);
?>

aca te dejo mas info

http://www.ignside.net/man/php/heredoc.php