From 2d9481dd9772008f0b402b6d1379b1165b7c7e28 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 24 Oct 2020 15:36:46 +0300 Subject: Modified php, javascript and html file tree --- Web design/PHP/Test/index.php | 155 ------------------------------------------ 1 file changed, 155 deletions(-) delete mode 100644 Web design/PHP/Test/index.php (limited to 'Web design/PHP/Test/index.php') diff --git a/Web design/PHP/Test/index.php b/Web design/PHP/Test/index.php deleted file mode 100644 index 00e4125..0000000 --- a/Web design/PHP/Test/index.php +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - -
- - -
- Enter your name: - -
- - "; - echo str_replace("Jo", "Mo", $workers[0]) . "
"; - echo substr($workers[0], 1, 1) . "
"; - } - - $staff = array("John", "Bob"); - doStuff($staff); - - foreach ($workers as $person) { - echo $person . ", "; - } - ?> - -
- - "; - - $num = 0; - echo $num++; - echo $num; - - $num = 0; - echo ++$num; - ?> - -
- -

Calculator

- -
- -
- - - -
- - - -
- - - -
- -
- - - - - -
- -
- -
- Blue:
- Red:
- Yellow:
- -
- - - -
- - 31, "Alex" => 20); - - echo $ages["John"] . $ages["Alex"]; - ?> - -
- - name = $personName; - $this->setAge($personAge); - } - - function setAge($age) { - if ($age < 0 || $age > 200) { - throw new Exception("Invalid age!", 1); - } - $this->age = $age; - } - - function getAge() { - return $this->age; - } - } - - class Worker extends Person { - - } - - $max = new Worker("Alex", 34); - - //$max->name = "Max"; - //$max->age = 22; - - echo $max->name, $max->getAge(); - ?> - - - - -- cgit v1.2.3