Kapitel 6 . Basic syntax

Innehållsförteckning
Escaping from HTML
Instruction separation
Comments

Escaping from HTML

Exempel 6-1 .














Not :



Not :

Exempel 6-2 .




This works as expected, because when PHP hits the ? closing tags, it simply starts outputting whatever it finds until it hits another opening tag. The example given here is contrived, of course, but for outputting large blocks of text, dropping out of PHP parsing mode is generally more efficient than sending all of the text through
echo() or print() or somesuch.