I've been seeing a lot of people having code like this:
PHP Code:
<?php
echo "<html>";
echo "<head>";
echo "<title>Title</title>";
echo "</head>";
echo "</html>";
?>
Now, some of you out there may say "There's no error!", you're right there isn't, but it would take up less room if you do something like this:
PHP Code:
<?php
echo <<< PAGE
<html>
<head>
<title>Title</title>
</head>
</html>
PAGE;
?>
Or even this:
PHP Code:
<?php
echo "
<html>
<head>
<title>Title</title>
</head>
</html>
";
?>
So this is just a useful tip, you don't need to use it or anything, just thought it'd be helpful.
Questions will be answered.
Bookmarks