PHP fixes and optimization

This commit is contained in:
Sage Vaillancourt 2024-01-22 22:11:45 -05:00
parent 89f3f87649
commit b1252955d6
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?php
echo '<!DOCTYPE html>';
echo '<html lang="en">';
echo '<!-- This is a simple PHP template -->';
echo "<!DOCTYPE html>\n";
echo "<html lang=\"en\">\n";
echo "<!-- This is a simple PHP template -->\n";
// This section could also use <?= syntax, but for example's sake, will not.
?>
@ -28,7 +28,7 @@
<body>
<h1>Hello world!</h1>
<p><?= "This page was rendered on " . date("Y-m-d") ?></p>
<p>This page was rendered on <?= date("Y-m-d") ?></p>
<pre><?php
$pairs = [