Or, you can actually include that type of character in the PHP code:
PHP Code:
<?php
echo "This has a
line break";
//or
echo <<<EOF
This text now can be formatted
however you want
include any symbols.. whatever
and variables like {$var}.
Just end like:
EOF;
?>
The right method to use depends on the circumstances. Twey's idea of breaking out of the PHP makes a lot of sense sometimes, too.
You can expand on that too:
PHP Code:
<?php
if (1==1) { ?>
This is just some html that will
only be output if the IF statement returns true
<?php
}
//now the PHP can continue
?>
Bookmarks