-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeTitle.php
More file actions
49 lines (43 loc) · 808 Bytes
/
ChangeTitle.php
File metadata and controls
49 lines (43 loc) · 808 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
<?php
//comment
#single line
//single line
/*
multiline
*/
//gettype() is used to identify the type of a variable.
//var_dump() is also used to identify the data type.
$fn="My name is ";
$name="shailesh";
echo $fn." ".$name;
echo "<br>";
$a=7;
$a="hello"; //overwrite
$b=5.6;
echo gettype($a); // integer
echo "<br>";
// echo gettype($fn); //string
// echo "<br>";
echo gettype($b);
echo "<br>";
$t=true;
echo gettype($t);
//var_dump($t);
echo "<br>";
$s=[1,2,3]; //array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }
//$s=array[1,2,3];
var_dump($s);
$num1=10;
$num2=20;
$result=$num1+$num2;
//echo $result;
// echo <h1> $result </h1> ;
?>
<html>
<head>
<title> <?php echo "About us "; ?></title>
</head>
<body>
<!-- <h1> <?php echo $result; ?> </h1> -->
</body>
</html>