Skip to main content

PHP en HTML

Bestudeer de volgende code.

<?php
	// de variable $today de (Engelse) dag van de week
    $today = strftime("%A");
 ?>

 <h1>Today it is <?php echo $today ?></h1>

<?php
    echo "<h1>Today it is $today </h1>";
?>

<?php
    echo "<h1>Today it is ".$today."</h1>";
?>