This circle has...

A radius of: 64
A diameter of: 128
A circumference of: 402.12385965949
An area of: 12867.963509104

The AREA is 12867.963509104 ---


Code follows

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Circle</title>
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>

<div class="page">

    <p class="nav"><a href="../index.php">Home</a></p>

    <?php

    
include("includes/header.php");

    
$r = rand(0,100);

    
$radius = $r;
    
$diameter = $radius * 2;
    
$circumference = M_PI * $diameter;
    
$area = M_PI * pow($radius, 2);

    echo(
'<h1>This circle has...</h1>');
    echo(
"A radius of: $radius <br>");
    echo(
"A diameter of: $diameter <br>");
    echo(
"A circumference of: $circumference <br>");
    echo(
'An area of: ' . $area . '<br>');

    echo(
"<h1>The AREA is $area ---</h1>");

    include(
"includes/footer.php");

    
?>

    <hr>

    <h2>Code follows</h2>

    <div class="code"><?php highlight_file(__FILE__); ?></div>

    <p class="nav nav-foot"><a href="../index.php">Home</a></p>

</div>

</body>
</html>