Created
January 12, 2018 15:53
-
-
Save arif98741/c942db3d49d0f991642578e6d633ebfd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>PHP Online Course For Learning</title> | |
<style type="text/css"> | |
.main{ | |
width: 75%; | |
margin: 10px auto; | |
background: #c0d6d8; | |
} | |
.header,.footer{ | |
background: #46592dc4; | |
color: #e0e0d6; | |
text-align: center; | |
height: 87px; | |
} | |
.content{ | |
min-height: 390px; | |
padding: 5px; | |
} | |
.content p{font-size:19px;} | |
.content h2{margin:0px; text-align:center;} | |
.header h1, .header p, .footer h1, .footer p{margin:0px;} | |
.footer a{text-decoration:none; color:brown;} | |
</style> | |
</head> | |
<body> | |
<div class="main"> | |
<div class="header"> | |
<h1>PHP Basic Fundamental Course</h1> | |
<p>Learn and Enjoy</p> | |
</div> | |
<div class="content"> | |
<h2>For Loop, While Loop, Do While Loop. Tutorial 11</h2> | |
<p style="font-size:18px;"> | |
<?php | |
$data = array( | |
"database", | |
"programming", | |
"datastructure", | |
"algorithm", | |
"electronics", | |
"fundametal", | |
"oriented", | |
"infratructure" | |
); | |
echo $sen = "database prog algo fun infratructure pro educate in a sequencial way"; | |
echo "<br/>Main Database array"; | |
echo "<pre>"; | |
print_r($data); | |
echo "</pre>"; | |
$sen_explode = explode(" ",$sen); | |
echo "Sentence array"; | |
echo "<PRE>"; | |
print_r($sen_explode); | |
echo "</PRE >"; | |
echo "<hr>"; | |
for($i = 0; $i<count($sen_explode); $i++) | |
{ | |
$sen_split = str_split($sen_explode[$i]); | |
for($j=0; $j<count($data); $j++) | |
{ | |
if($j<count($data)) | |
{ | |
$data_split = str_split($data[$j]); | |
echo "<PRE>"; | |
print_r($sen_split); | |
echo "</PRE >"; | |
} | |
echo $j." "; | |
if($sen_split[$j] == $data_split[$j]){ | |
echo "done, "; | |
} | |
echo "<hr>"; | |
} | |
echo "<br/>"; | |
} | |
?> | |
</p> | |
</div> | |
<div class="footer"> | |
<h1>Instructor Ariful Islam 2017</h1> | |
<p>© Copyright <a href="https://www.youtube.com/channel/UCIoDbAdMtNye5uR3riRZZsA">Ariful Islam</a></p> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment