}
?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset=utf-8>
        <title>Mijn rekenmachine</title>
            <style type="text/css">
                h1 { color: red; }
            </style>
    </head>
    <body>
        <h1>
            <?php 
$reken = new Rekenmachine();
print $reken->getKwadraat(5);
?>
        </h1>
        <h1>
            <?php 
print $reken->getSom(34, 55);
?>
        </h1>
        <h1>
            <?php 
print $reken->getProduct(3, 55);
?>
        </h1>
    </body>
</html>
示例#2
0
?>


<!DOCTYPE HTML>
<html>
<head>
	<meta charset=utf-8>
	<title>Mijn rekenmachine</title>
	<style type="text/css">
		h1 { color: red; }
	</style>
</head>
<body>
	<h1>
		<?php 
$reken = new Rekenmachine();
print $reken->getKwadraat(5);
?>
	</h1>
	<h1>
		<?php 
print $reken->getSom(34, 35);
?>
	</h1>	
	<h1>
		<?php 
print $reken->getProduct(2, 3);
?>
	</h1>
</body>
</html>
    <head>
        <title>Hello world</title>       
        <style type="text/css">
        h1 { color: red; }
        </style>
    </head>
    <body>
        <h1>
            <?php 
$reken = new Rekenmachine();
print $reken->getKwadraat(5);
?>
        </h1>
        <h1>
            <?php 
print $reken->getSom(65, 8);
?>
            <br />
            <?php 
print $reken->getSom(34, 55);
?>
        </h1>
            
        <h1>
            <?php 
print $reken->getProduct(3, 7);
?>
        </h1>
    </body>
</html>
}
?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Rekenmachine</title>
        <style type="text/css">
            h1 {color: red;}
        </style>
    </head>
    <body>
        <h1>
        <?php 
$reken = new Rekenmachine();
print $reken->getKwadraat(5);
?>
        </h1>
        <h1>
            <?php 
print $reken->getSom(65, 8);
?>
        </h1>
        <h1>
            <?php 
print $reken->getProduct(34, 55);
?>
        </h1>        
    </body>
</html>