-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment.php
More file actions
44 lines (34 loc) · 822 Bytes
/
Copy pathassignment.php
File metadata and controls
44 lines (34 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
44
<?php
$name = 'Ajayi Emmanuel';
$age = '18';
$country = 'Nigeria';
echo $name;
echo "<br>";
echo $age;
echo "<br>";
echo $country;
echo '<br><br>';
echo "My name is ".$name.". I am ".$age."years old. I am from ".$country.".I love PHP";
echo "<br><br>";
define('POPULATION', 18000000);
echo POPULATION;
echo '<br><br>';
$test = "bolanle";
echo is_string($test);
echo "<br>";
echo is_integer(287);
echo "<br>";
echo is_float(28.7);
echo "<br>";
echo is_bool(false);
echo "<br>";
$x = 108;
$y = 54;
echo $x + $y;
echo "<br>";
$square_of_x = $x * $x;
$half_of_y = $y / 2;
echo $square_of_x * $half_of_y;
echo "<br>";
echo $x % $y;
?>