diff --git a/ArrayClass/index.php b/ArrayClass/index.php
new file mode 100644
index 0000000..7be158f
--- /dev/null
+++ b/ArrayClass/index.php
@@ -0,0 +1,4 @@
+
diff --git a/class/index.php b/class/index.php
new file mode 100644
index 0000000..de7c633
--- /dev/null
+++ b/class/index.php
@@ -0,0 +1,59 @@
+name = $name;
+ // $this->speed = $s;
+ // $this->running = true;
+ // }
+
+ function __construct($name = "Farhad Name"){
+ $this->name = $name;
+ // $this->speed = $s;
+ $this->running = true;
+ }
+ function __destruct(){
+ echo "hello destruct
";
+ }
+
+ function set_name($name){
+ $this->name = $name;
+ }
+
+ function get_name(){
+ return $this->name;
+ }
+ function get_run(){
+ return $this->running = true;
+ }
+ function stopRun(){
+ return $this->running = false;
+ }
+ }
+
+ $p1 = new player("Farhad");
+
+ $p2 = new player("Foysal");
+
+ $p1->set_name("Farhad Foysal");.
+ $p2->set_name("Farhad MOni");
+
+ echo $p1->get_name()."
".$p2->get_name()."
".$p2->get_run()."
";
+
+ $p3 = new player("Moni");
+
+ echo $p3->name."
";
+
+ $p4 = new player("constractor_name");
+
+ echo $p4->name."
";
+
+ $p5 = new player("");
+
+
+
+?>
\ No newline at end of file
diff --git a/cookies/cookie.php b/cookies/cookie.php
new file mode 100644
index 0000000..9d99ba3
--- /dev/null
+++ b/cookies/cookie.php
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/cookies/index.php b/cookies/index.php
new file mode 100644
index 0000000..0730af7
--- /dev/null
+++ b/cookies/index.php
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/date/index.php b/date/index.php
new file mode 100644
index 0000000..06867c9
--- /dev/null
+++ b/date/index.php
@@ -0,0 +1,36 @@
+";
+ $d = date("d l");
+ echo "today is $d
";
+ $d = date("d D");
+ echo "today is $d
";
+ $d = date("l dS F Y");
+ echo "today is $d
";
+ $d = date("l dS F Y, g:i A");
+ echo "today is $d
";
+ $d = date("l dS F Y h:i:s A");
+ echo "today is $d
";
+
+
+
+?>
\ No newline at end of file
diff --git a/files/index.php b/files/index.php
new file mode 100644
index 0000000..7b93003
--- /dev/null
+++ b/files/index.php
@@ -0,0 +1,66 @@
+";
+ readfile("index.txt");
+
+ echo "
";
+
+ $fopen = fopen("index.txt", "r");
+
+ echo var_dump($fopen);
+
+ if(!$fopen){
+ die("unable to open this file. please enter valid filename");
+ }
+
+
+ // $content = fread($fopen, 70);
+
+ $content = fread($fopen, filesize("index.txt"));
+ fclose($fopen);
+
+ echo $content."
";
+
+ $fopen = fopen("index.txt", "r");
+ // echo fgets($fopen)."
";
+ // echo fgets($fopen)."
";
+ // echo fgets($fopen)."
";
+
+ // while($a=fgets($fopen)){
+ // echo $a."
";
+ // }
+
+ // while($a=fgetc($fopen)){
+ // echo $a." ";
+
+ // }
+
+
+ while($a=fgetc($fopen)){
+ echo $a." ";
+ if($a==".."){
+ break;
+ }
+ }
+ echo "
";
+
+ fclose($fopen);
+
+ $fopen = fopen("index.txt", "w");
+ fwrite($fopen, "This is the best file on this planet. Please don't argue with me on this one.");
+
+ fwrite($fopen, "This is another content, This is the best file on this planet. Please don't argue with me on this one.");
+
+ fwrite($fopen, "write three.\n");
+ fclose($fopen);
+
+
+ $fopen = fopen("index.txt", "a");
+ fwrite($fopen, "This is the best file on this planet. Please don't argue with me on this one.");
+
+ fwrite($fopen, "This is another content, This is the best file on this planet. Please don't argue with me on this one.");
+
+ fwrite($fopen, "write three.\n");
+ fclose($fopen);
+?>
\ No newline at end of file
diff --git a/files/index.txt b/files/index.txt
new file mode 100644
index 0000000..27918bd
--- /dev/null
+++ b/files/index.txt
@@ -0,0 +1,2 @@
+This is the best file on this planet. Please don't argue with me on this one.This is another content, This is the best file on this planet. Please don't argue with me on this one.write three.
+This is the best file on this planet. Please don't argue with me on this one.This is another content, This is the best file on this planet. Please don't argue with me on this one.write three.
diff --git a/function/index.php b/function/index.php
new file mode 100644
index 0000000..1fd1f5a
--- /dev/null
+++ b/function/index.php
@@ -0,0 +1,18 @@
+
php function
+ "; + echo "Total marks by foysal is $sumMarksf "; +?> \ No newline at end of file diff --git a/index.php b/index.php index e69de29..01cd3c1 100644 --- a/index.php +++ b/index.php @@ -0,0 +1,15 @@ +php function
+ \ No newline at end of file diff --git a/multiArray/index.php b/multiArray/index.php new file mode 100644 index 0000000..7732a49 --- /dev/null +++ b/multiArray/index.php @@ -0,0 +1,66 @@ +"; + +$arr = ['this', 'that', 'what']; + +echo "Array : $arr[0] , $arr[1] , $arr[2]