Skip to content

Commit 492992d

Browse files
done
1 parent 6b86789 commit 492992d

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

associate-array.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
// Creating a multidimensional associative array
3+
$Student = array(
4+
array(
5+
"name" => "NP",
6+
"course" => "Teacher",
7+
"Semester" => 6
8+
),
9+
array(
10+
"name" => "Paras Gupta",
11+
"course" => "BCA",
12+
"Semester" => 6
13+
),
14+
array(
15+
"name" => "Tanish Gupta",
16+
"course" => "BCA",
17+
"Semester" => 6
18+
)
19+
);
20+
21+
// Displaying the data
22+
foreach ($Student as $key => $value) {
23+
echo "Student " . ($key + 1) . "<br>";
24+
echo "Name: " . $value["name"] . "<br>";
25+
echo "Course: " . $value["course"] . "<br>";
26+
echo "Semester: " . $value["Semester"] . "<br><br>";
27+
}
28+
?>
29+
<footer style="position:fixed; left:0; right:0; bottom:0; background:#f8f8f8; padding:10px 0; text-align:center; border-top:1px solid #e0e0e0; font-family:Arial, sans-serif;">
30+
<strong>Code Is Writen By <a href="https://www.linkedin.com/in/parasgupta-binary0101">Paras Gupta</a></strong>
31+
</footer>

factoral.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
echo "factor is " . $factor . "<br>";
2121
}
2222

23-
?>
23+
?>
24+
<footer style="position:fixed; left:0; right:0; bottom:0; background:#f8f8f8; padding:10px 0; text-align:center; border-top:1px solid #e0e0e0; font-family:Arial, sans-serif;">
25+
<strong>Code Is Writen By <a href="https://www.linkedin.com/in/parasgupta-binary0101">Paras Gupta</a></strong>
26+
</footer>

0 commit comments

Comments
 (0)