26 lines
359 B
PHP
26 lines
359 B
PHP
|
<!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>
|