renaming for the sake of having better naming
This commit is contained in:
35
web/html/basics.php
Normal file
35
web/html/basics.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<!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>
|
||||
|
||||
|
||||
<p>
|
||||
<?php
|
||||
$string = "PHP is wonderful and great.";
|
||||
$string = $string . " " . "All the cool kids are doing it.";
|
||||
print $string;
|
||||
?>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user