forked from timkang95/assignment3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment3.php
More file actions
43 lines (38 loc) · 822 Bytes
/
assignment3.php
File metadata and controls
43 lines (38 loc) · 822 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
<?php
require_once("init.php");
$thestuff = array('Hello', 'this', 'is', 'my', 10, 'words', 'not', 'really');
$words = new ParentClass($thestuff);
$words2 = new ParentClass("This is my already made string");
$ext = new ChildClass($thestuff);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Assignment 3</title>
<link rel="stylesheet" href="assignment3.css">
</head>
<body>
<div id="main">
<h1>My Parent Classes and the Child!</h1>
<section id="first">
<?php
echo $words.'<br />';
echo $words->scrambler().'<br />';
?>
</section>
<section id="two">
<?php
echo $words2.'<br />';
echo $words2->scrambler().'<br />';
?>
</section>
<section id="third">
<?php
echo $ext.'<br />';
echo $ext->scrambler().'<br />';
?>
</section>
</div>
</body>
</html>