-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.php
More file actions
53 lines (35 loc) · 929 Bytes
/
script.php
File metadata and controls
53 lines (35 loc) · 929 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
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
echo "<h1>hello</h1>";
$name=$_POST["name"];
$grade=$_POST["grade"];
$section=$_POST["section"];
$teacherName=$_POST["teacherName"];
echo ' - ' .$name. ' - ' .$grade. ' - ' .$section. ' - ' .$teacherName;
define("pi",3.14156);
$max= (5>10)? "<br>hello 5<br><br>":"<br>tteee 10<br><br> ";
echo $max;
echo pi;
$a=array(array("a","b","c"),
array("t","v","d"),
array("n","xxx","b"));
foreach($a as $aval){
foreach ($aval as $o){
echo $o ."<br>";
}
}
$d=" helo guys ";
echo " <br> ".strlen(trim($d));
echo " <br> ".strlen(ltrim($d))." : ".ltrim($d);
echo " <br> ".strlen(rtrim($d))." : ".rtrim($d);
?>
</body>
</html>