forked from assembler-institute/php-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint.php
More file actions
37 lines (26 loc) · 841 Bytes
/
print.php
File metadata and controls
37 lines (26 loc) · 841 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
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Print.php</title>
</head>
<body>
<h2>Print</h2>
<!--
- Generate an instruction that makes use of "echo"
- Generate an instruction that makes use of "print"
- Generate an instruction that makes use of "print_r", it is important that you assign a complex value to analyze its potential
-->
<?php
echo "echo: This language needs more color.<br/>";
echo "<br/>";
print "print: Used to display a string.<br/>";
echo "<br/>";
echo "Print_r: ";
$dogs = array('dog1' => 'Collie', 'Poodle' => array ('White', 'Black'));
print_r ($dogs);
?>
</body>
</html>