-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPHP_03_script_statements.php
More file actions
22 lines (21 loc) · 925 Bytes
/
Copy pathPHP_03_script_statements.php
File metadata and controls
22 lines (21 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<title>Pauline PHP Tutorial</title>
<body>
<?php
/* This is a comment with multiline
Author : Polina Lemenkova
Purpose: Multiline Comments PHP Tutorial
Subject: PHP
*/
print "An example with
multi line comments";
#Singly quoted strings are treated almost literally, whereas doubly quoted strings replace variables with their values as well as specially interpreting certain character sequences.
$variable = "name";
$literally = 'My $variable will not print!\n';
print($literally);
$literally = "My $variable will print!\n next line. This is a \t tab. Double quotes: The name of the hotel is \"Hilton\". Chocolate bar costs \$2.50. Some text exercices.";
print($literally);
?>
</body>
</html>