-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
54 lines (41 loc) · 997 Bytes
/
index.php
File metadata and controls
54 lines (41 loc) · 997 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// step 1
// 328/pp2/index.php
/*
* Jada Senebouttarath
* 4/15/21
* http://iamjada1.greenriverdev.com/328/pp2/index.php
* Pair Program 2
*
*/
// Turn on error reporting
ini_set('display_errors', 1);
error_reporting(E_ALL);
include 'functions.php';
echo "<h2>Pair Program 2</h2>"
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pair Program 2</title>
</head>
<body>
<?php
echo "PHP Array Practice";
echo "<br>" . "<br>";
$numbers = array(7, 9, 8, 9, 8, 8 ,6);
//prints the array one item per line
echo printArray($numbers);
echo '<br>';
// print the largest number in the array
echo "The largest number is ". largest( $numbers);
echo '<br>';
// prints the array after removing duplicate numbers
echo removeDups($numbers);
?>
</body>
</html>