File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments