[tip] \ and PHP
For those who write PHP you probably hate writing a \ (Backslash) before every " so that the code won't give errors. It's really annoying when you have a lot of these: ".
e.g:
<?php
if ($this == "that") {
echo "
Your " have to have a \ before them! ( \" )
";
}
?>
The way to stop this is to write something like this:
<?php
if ($this == "that") {
?>
Your " can go here and don't need to have a \ before it!
<?php
}
?>
You end the PHP code, then type your text, start the PHP code again and no annoying \.
Handy tip.
Enjoy! 8)
|