phpTutorial: github repo synced.
This commit is contained in:
parent
c70358827e
commit
ce45083818
2 changed files with 19 additions and 5 deletions
17
index.php
17
index.php
|
|
@ -4,15 +4,22 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
$name = "Dark Matter";
|
||||
$read = true;
|
||||
if ($read) {
|
||||
$message = "You have read $name";
|
||||
}
|
||||
else {
|
||||
$message = "You havn't read $name.";
|
||||
}
|
||||
?>
|
||||
<h1>
|
||||
<?php
|
||||
$greeting = "Hello";
|
||||
echo $greeting . ", " . "Everybody!";
|
||||
echo "$greeting, Everybody!";
|
||||
?>
|
||||
<?php echo $message?>
|
||||
</h1>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue