working through "basics" section
This commit is contained in:
parent
e40a4a00c2
commit
a4d57e3e34
25
docroot/html/basics.php
Normal file
25
docroot/html/basics.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>php basics</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$x = 25;
|
||||||
|
$y = 10;
|
||||||
|
$z = $x + $y;
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<p><?php printf("\$z=%s", $z); ?></p>
|
||||||
|
|
||||||
|
<?php $z = $x / $y; ?>
|
||||||
|
|
||||||
|
<p><?php printf("\$z=%s", $z); ?></p>
|
||||||
|
|
||||||
|
<?php $z = $y * $y * $x; ?>
|
||||||
|
|
||||||
|
<p><?php print $z - 1250; ?></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user