File tree Expand file tree Collapse file tree 4 files changed +75
-49
lines changed
Expand file tree Collapse file tree 4 files changed +75
-49
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ include '../head.php ' ;
3+ ?>
Original file line number Diff line number Diff line change 1+ <head >
2+ <meta charset = " UTF-8" >
3+ <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
4+ <title >CODER SHIYAR</title >
5+ </head >
Original file line number Diff line number Diff line change 1-
21<?php
3- $ name = "Amin " ;
4- $ age = 20 ;
5- $ salary = 2200.00 ;
6- // نوع الاول - indexed array
7- $ id1 = ["Amin " , 20 , 2200.00 , "نعم " ];
8-
9- // echo "الأسم: ".$id1[0] . "العمر:" .$id1[1];
102
11-
12- $ id2 = array ("Amir " , 20 , 4200.00 , "لا " );
3+ // include
4+ // require
5+ // include_once
6+ // require_once
137
148?>
159
1610<!DOCTYPE html>
1711<html lang="en">
18- <head>
19- <meta charset="UTF-8">
20- <meta name="viewport" content="width=device-width, initial-scale=1.0">
21- <title>Document</title>
22- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
23- </head>
12+ <?php require 'head.php ' ; ?>
2413<body>
25- <table class="table">
26- <thead>
27- <tr>
28- <th scope="col">اسم</th>
29- <th scope="col">عمر</th>
30- <th scope="col">راتب</th>
31- <th scope="col">متزوج</th>
32- </tr>
33- </thead>
34- <tbody>
35- <tr>
36- <?php
37- foreach ($ id1 as $ data ){
38-
39- echo " <th> $ data</th> " ;
40- }
41- ?>
42- </tr>
43-
44- <tr>
45- <?php
46- // foreach($id2 as $data){
47-
48- // echo " <th>$data</th>" ;
49- // }
5014
51- for ($ i = 0 ; $ i <count ($ id2 );++$ i ){
52- echo " <th> $ id2 [$ i ]</th> " ;
53- }
54- ?>
55- </tr>
56- </tbody>
57- </table>
5815
16+ <h1> hallo world</h1>
5917</body>
60- </html>
18+ </html>
Original file line number Diff line number Diff line change 1+
2+ <?php
3+ $ name = "Amin " ;
4+ $ age = 20 ;
5+ $ salary = 2200.00 ;
6+ // نوع الاول - indexed array
7+ $ id1 = ["Amin " , 20 , 2200.00 , "نعم " ];
8+
9+ // echo "الأسم: ".$id1[0] . "العمر:" .$id1[1];
10+
11+
12+ $ id2 = array ("Amir " , 20 , 4200.00 , "لا " );
13+
14+ ?>
15+
16+ <!DOCTYPE html>
17+ <html lang="en">
18+ <head>
19+ <meta charset="UTF-8">
20+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
21+ <title>Document</title>
22+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
23+ </head>
24+ <body>
25+ <table class="table">
26+ <thead>
27+ <tr>
28+ <th scope="col">اسم</th>
29+ <th scope="col">عمر</th>
30+ <th scope="col">راتب</th>
31+ <th scope="col">متزوج</th>
32+ </tr>
33+ </thead>
34+ <tbody>
35+ <tr>
36+ <?php
37+ foreach ($ id1 as $ data ){
38+
39+ echo " <th> $ data</th> " ;
40+ }
41+ ?>
42+ </tr>
43+
44+ <tr>
45+ <?php
46+ // foreach($id2 as $data){
47+
48+ // echo " <th>$data</th>" ;
49+ // }
50+
51+ for ($ i = 0 ; $ i <count ($ id2 );++$ i ){
52+ echo " <th> $ id2 [$ i ]</th> " ;
53+ }
54+ ?>
55+ </tr>
56+ </tbody>
57+ </table>
58+
59+ </body>
60+ </html>
You can’t perform that action at this time.
0 commit comments