git @ Cat's Eye Technologies Dipple / master php / index.php
master

Tree @master (Download .tar.gz)

index.php @masterraw · history · blame

<html>
<!--
SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
For more information, please refer to <https://unlicense.org/>
SPDX-License-Identifier: Unlicense
-->
<h1><?php

    $id = $_GET['id'];
    if ($id < 20) {
        echo "$id is less";
    } else {
        echo "$id is more";
    }
?></h1>

<p style="colour: red;">This is some text.
<?php

define("myCatName", "James the Cat");

class Cat
{
    public $name = myCatName;
}

$james = new Cat;
$puff = $james;
$puff->name = "Puff the Cat";

echo "James' name is $james->name.  ";
echo "Puff's name is $puff->name.";

?></p>
</html>