-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutput.php
More file actions
35 lines (22 loc) · 748 Bytes
/
output.php
File metadata and controls
35 lines (22 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!doctype html>
<html>
<head>
<title>PHP and Creating Output</title>
</head>
<body>
<?php
echo '<h1>PHP and Creating Output</h1>';
?>
<p>The PHP echo command can be used to create output.</p>
<p>When creating output using echo and PHP, quotes can often cause problems. There are several solutions to using quotes within an echo statement:</p>
<ul>
<li>Use HTML special characters</li>
<li>Alternate between single and double quotes</li>
<li>Use a backslash to escape quotes</li>
</ul>
<h2>More HTML to Convert</h2>
<p>PHP says "Hello World!"</p>
<p>Can you display a sentence with ' and "?</p>
<img src="php-logo.png">
</body>
</html>