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 <?php
echo '<!DOCTYPE html>'; echo "<!DOCTYPE html>\n";
echo '<html lang="en">'; echo "<html lang=\"en\">\n";
echo '<!-- This is a simple PHP template -->'; echo "<!-- This is a simple PHP template -->\n";
// This section could also use <?= syntax, but for example's sake, will not. // This section could also use <?= syntax, but for example's sake, will not.
?> ?>
@ -28,7 +28,7 @@
<body> <body>
<h1>Hello world!</h1> <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 <pre><?php
$pairs = [ $pairs = [