Skip to content

Commit 976b393

Browse files
committed
new
1 parent cc28da5 commit 976b393

File tree

4 files changed

+75
-49
lines changed

4 files changed

+75
-49
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
include '../head.php';
3+
?>

LESSON 19 - الدرس/head.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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>

LESSON 19 - الدرس/index.php

Lines changed: 7 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,18 @@
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>

LESSON 20 - الدرس/index.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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>

0 commit comments

Comments
 (0)