Skip to main content

Posts

Showing posts from November, 2017

PHP Array Part 2 in Bangla Language

Code: <?php $x = array('x'=>'a','y'=>'b','z'=>'c'); print $x['y']; print_r($x); $x1 = array('x'=>array('m'=>1,'n'=>2),'y'=>'b','z'=>'c'); print "<br>"; print "THe content of index n is: ".$x1['x']['n']; print_r($x1); ?>

PHP Array Part 2

Code: <?php $x = array('x'=>'a','y'=>'b','z'=>'c'); print $x['y']; print_r($x); $x1 = array('x'=>array('r'=>1,'s'=>2),'y'=>'b','z'=>'c'); print $x1['x']['r']; print_r($x1); ?>

PHP Array Part 1 in Bangla

Code: <?php $x[] = 80; $x[] = "xyz"; $x[] = 40; print_r($x); $x1 = array(80,90,40); print_r($x1); $x2['a'] = 80; $x2['b'] = 90; $x2['c'] = 40; print_r($x2); $x3 = array('a'=>80,'b'=>90,'c'=>40); print_r($x3); ?>

PHP Array Part 1

Code: <?php $x[]=70; $x[]=90; $x[]=40; $x3 = array(70,90,40); print_r($x); print_r($x3); $x1[]="abc"; $x1[]="xyz"; $x1[]="mnp"; print_r($x1); $x2['a']="abc"; $x2['b']="xyz"; $x2['c']="mnp"; $x4 = array('a'=>'abc','b'=>'xyz','c'=>'mnp'); print_r($x2); print_r($x4); ?>

PHP Function Part 3 in Bangla Language

Code: <?php function xyz($x, $y){ $z = $x + $y; return $z; } $a = xyz(10,20); print $a; function x() { $y[] = "abc"; $y[] = "xyz"; $y[] = "efg"; return $y; } list($a,$b,$c) = x(); print "<br />"; print $a." ".$b." ".$c; ?>

PHP Function part3

Code: <?php function xyz($x,$y){ $z = $x + $y; return $z; } $b = xyz(10,20); print $b; function xyz1(){ $z[] = "he"; $z[] = "she"; $z[] = "me"; return $z; } list($x,$y,$z) = xyz1(); print "<br />"; print $x." ".$y." ".$z; ?>

PHP Function Part2 in Bangla Language

Code: <?php function xyz($x,$y=5){ $z = $x+$y; print "The result is: $z"; } xyz(10); ?>

PHP Function Part2

Code: <?php function xyz($x,$y=5) { $z = $x+$y; print $z; } xyz(10); ?>

PHP function Part1

Code: <?php /* function definition function call */ function xyz(){ $x = 10; $y = 20; $z = $x + $y; print "The summation is:".$z; } xyz(); ?>

Javascript parseint method in Bangla Language

Code: <script language="javascript"> var x = "10"; var y = 10 + parseInt(x); alert(y); var x1 = "The number is 10"; var y1 = 10 + parseInt(x1); alert(y1); function xyz(){ var b = document.fm.nm.value; var c = parseInt(b)+10; alert(c); } </script> <form id="fm" name="fm"> <input type="text" id="nm" name="nm" />     <input type="button" value="Sum" onClick="xyz()" /> </form>

Javascript parseint method

Code: <script language="javascript"> var x = "10"; var y = 10 + parseInt(x); alert(y); var x1 = "The number is 10"; var y1 = 10 + parseInt(x1); alert(y1); function xyz(){ var b = document.fm.nm.value; var c = parseInt(b) +10; alert(c);   } </script> <form name="fm" id="fm"> <input type="text" id="nm" name="nm" /> <input type="button" value="sum" onClick="xyz()" /> </form>

Javascript Escape Sequence in Bangla Language

Code: <script> var x = "\"We are learning JavaScript\""; alert(x); var x1 = '\'We are learning JavaScript\''; alert(x1); alert("We are learning \n JavaScript"); </script>

Javascript Escape Sequence

Code: <script language="javascript"> var x = "\"We are learning JavaScript\""; alert(x); var x1 = '\'We are learning JavaScript\''; alert(x1); alert("i am showing \n JavaScript example"); </script>

PHP Continue statement in Bangla

Code: <?php $arr = array(10,20,50,30,40,60); for($i=0;$i<count($arr);$i++){ if($arr[$i]==50){ continue; } else { print "The value of array is".$arr[$i]."<br>"; } } ?>

PHP Continue statement

Code: <?php $arr = array(10,20,50,30,40,60); for($i=0;$i<count($arr);$i++){ if($arr[$i]==50){ continue; } else { print "The value of array is".$arr[$i]."<br>"; } } ?>

PHP Goto Statement in Bangla Language

Code: <?php $arr = array(12,34,23,45,60,47,68); for($i=0;$i<count($arr);$i++){ if($arr[$i]>=60){ goto x; } else { print "The value of array is:".$arr[$i]."<br />"; } } x: print "The number is greater than 60"; ?>

PHP Goto Statement

Code: <?php $arr = array(30,10,20,50,70,56); for($i=0;$i<count($arr);$i++){ if($arr[$i]>=50){ goto x; } else { print "The value of array".$arr[$i]."<br />"; } } x: print "The recent number is greater than 50"; ?>

PHP Break Statement in Bangla Language

Code: <?php //break statement $arr = array(10,35,26,60,26,47); for($i=0;$i<count($arr);$i++){ if($arr[$i]>=60){ break; } else { print "The data of array is".$arr[$i]."<br />"; } }

PHP Break Statement

Code: <?php $arr = array(30,35,20,50,56,12,45); for($i=0;$i<count($arr);$i++){ if($arr[$i]>=50){ break; } else { print "The number of array is".$arr[$i]."<br />"; } } ?>

PHP For each Loop in Bangla Language

Code: <?php $arr = array('x'=>'john','y'=>'abraham','z'=>'joe'); foreach($arr as $var){ print "The value of array are=".$var."<br />"; } ?>

PHP For each Loop

Code: <?php $arr = array('x'=>'john','y'=>'abraham','z'=>'joe'); foreach($arr as $var){ print "The value of array are=".$var."<br />"; } ?>

PHP For loop in Bangla Language

Code: <?php for($i=1;$i<=5;$i++) { print "The value of i is $i <br />"; } print "<br />"; $arr = array(10,20,35,40,5); for($i=0;$i<count($arr);$i++){ print "The of $i index = $arr[$i] <br />"; } ?>

PHP For loop

Code: <?php for($i=1;$i<=5;$i++){ print "The value of i is $i<br />"; } print "<br />"; $arr = array(10,20,35,15,80); for($i=0;$i<count($arr);$i++){ print "The value $i index= $arr[$i]<br />"; } ?>

PHP Loop Part1 in Bangla Language

Code: <?php /* PHP Loop while loop do while loop for loop for each loop */ $i=25; while($i<=20){ print "The value of i of while loop is $i<br />"; $i=$i+3; } $i=25; do{ print "The value of i  of do while loop is $i<br />"; $i=$i+3; }while($i<=20);

PHP Loop Part1

Code: $i=5; while($i<=1){ print "The value of i of while loop is $i<br />"; $i=$i+3; } $i=5; do{ print "The value of i of do while loop is $i<br />"; $i=$i+3; }while($i<=1);

PHP Conditional Statement Part3 in Bangla Language

Code: <?php /* coditional statement if statement if else statement if elseif else statement switch statement */ $x = 6; switch($x){ case 1: print "one"; break; case 2: print "two"; break; case 3: print "three"; break; default: print "Sorry you entered wrong choice"; } ?>

PHP Conditional Statement Part3

Code: $x = 1; switch($x){ case 1: print "one"; break; case 2: print "two"; break; case 3: print "three"; break; default: print "You give wrong choice"; }

PHP Conditional Statement Part2 in Bangla

PHP Conditional Statement Part2

Code: <?php /* coditional statement if statement if else statement if elseif else statement switch statement */ $x = 10; if($x>=33 && $x<40){ print "3rd division"; } elseif($x>=40 && $x<60){ print "2nd division"; } elseif($x>=60 && $x<=100){ print "1st division"; } else{ print "Sorry you are failed"; } ?>

PHP Conditional Statement Part1 in Bangla Language

Code: <?php /* coditional statement if statement if else statement if elseif else statement switch statement */ $x = 60; if($x>=50){ print "You are old"; } else { print "You are not old"; } ?>

PHP Conditional Statement Part1

Code: <?php /* coditional statement if statement if else statement if elseif else statement switch statement */ $x = 60; if($x>=50){ print "You are old"; } else { print "You are not old"; } ?>

PHP Constant in Bangla Language

Code: <?php define("z",5.12); $x = z * 2; print $x; ?>

PHP Constant

Code: <?php define("z",5.12); $x = z * 2; print $x; ?>

PHP variable scope part4

Code: <?php /* variable scope in php local variable global variable static variable function parameter */ function xyz($x,$y){ $z = $x + $y; print $z; } xyz(50,30); ?>

PHP variable scope part4 in Bangla Language

Code: <?php /* variable scope local variable global variable static variable function parameter */ function xyz($x,$y){ $z = $x + $y; print $z; } xyz(30,20);

PHP variable scope part3

Code: <?php /* variable scope in php local variable global variable static variable function parameter */ function xyz(){ static $x = 10; $x++; print $x."<br />"; } xyz(); xyz(); xyz(); ?>

PHP variable scope part3 in Bangla Language

Code: <?php /* variable scope local variable global variable static variable function parameter */ function xyz(){ static $z = 10; $z++; print $z."<br />"; } xyz(); xyz(); xyz();

PHP variable scope part2

Code: <?php /* variable scope local variable global variable static variable function parameter */ $x = 10; function xyz(){ //global $x; $z = 10 + $GLOBALS["x"]; print $z; } xyz();

PHP variable scope part2 in Bangla Language

Code: <?php /* variable scope in php local variable global variable static variable function parameter */ $x = 10; function xyz(){ //global $x; $z= 10+$GLOBALS["x"]; print $z; } xyz(); ?>

PHP variable scope part1

Code: <?php /* variable scope in php local variable global variable static variable function parameter */ $x = 10; function xyz(){ $x = 15; print "The value of x inside function is: $x<br />"; } xyz(); print "The value of x outside function is: $x"; ?>

PHP variable scope part1 in Bangla Language

Code: <?php /* variable scope local variable global variable static variable function parameter */ $x = 10; function xyz(){ $x = 15; print "The value of x inside function is: $x<br />"; } xyz(); print "The value of x is: $x";

PHP Type Juggling

Code: <?php $x = "50"; $y = 60; $z = $x - $y; print $z; $b = "1.0"; if($b){ print "hello"; } ?>

PHP Type Casting in Bangla Language

Code: <?php print $x =(int)78.9; print "<br />"; print $y = (float)87; $z = (array)90; print "<br />"; print $z[0]; ?>

PHP Printf and Sprintf

Code: <?php $x = 50.555; printf("The number is %f<br>",$x); $y = sprintf("The number is %f",$x); print $y; ?>

HTML5 Tabula Data Example

Code: <table border width="60%"> <tr>     <td rowspan="4"><img src="pic5.jpg" width="200px" height="100px" /></td>     <td>Great</td>     <td rowspan="5"><img src="pic.jpg" width="200px" height="100px" /></td>     <td>John</td>         <td>25</td>     </tr>     <tr>         <td rowspan="2">Birth Day</td>         <td>Abraham</td>         <td>35</td>     </tr>    <tr>                         <td>Adams</td>         <td>45</td>     </tr> <tr>         <td rowspan="2">Simple</td>         <td>Lee</td>         <td>15</td>     </tr> <tr>     <td>Apple</td>         <td>Breat</td>         <td>

HTML5 Tabular Data Part3 in Bangla Language

Code: <table border="5" cellspacing="20"> <tr>     <td>1</td>         <td>2</td>         <td>3</td>     </tr> <tr>     <td>4</td>         <td>5</td>         <td>6</td>     </tr> <tr>     <td>7</td>         <td>8</td>         <td>9</td>     </tr>    </table>

HTML5 Tabular Data Part2 in Bangla Language

Code: <table width="50%" border="5"> <tr> <td colspan="3">1</td>                       </tr>     <tr> <td>4</td>         <td>5</td>         <td>6</td>        </tr>     <tr> <td>7</td>         <td>8</td>         <td>9</td>        </tr> </table>

HTML5 Tabular Data Part1 in Bangla Language

Code: <table border="5" width="50%" height="30%"> <caption><h3>Information Details</h3></caption> <tr> <th> Name                </th>         <th>         Email         </th>         <th>         Age         </th>         <th>         Image         </th> </tr>     <tr> <td>         John         </td>         <td>         john@gmail.com         </td>         <td>         35         </td>         <td>         <img src="pic.jpg" height="100px" width="100px" />         </td>        </tr>     <tr> <td>         Abraham         </td>         <td>         abraham@gmail.com         </td>         <td>         40         </td>          <td>         <img src="pic1.

PHP Basic

Code: <?php print "This is our first PHP example<br />"; echo "We are learning PHP"; $xyz = "My roll no:30"; print "<br>".$xyz; ?>

HTML5 Map Area Tag in Bangla Language

Code: <img src="pic3.jpg" height="500" width="500" usemap="#xyz" /> <map name="xyz"> <area shape="rect" coords="0,0,220,200" href="#"> </map>

HTML5 Form in Bangla Language

Code: <fieldset> <legend>Information</legend> <form action="" method=""> <div>     <input type="hidden" value="abc" id="hid" name="hid" /> <label for="name">Name:</label>     <input type="text" id="name" name="name" value="" />     </div>     <div> <label for="email">Email:</label>     <input type="email" id="email" name="email" value="" />      </div>      <div> <label for="pass">Password:</label>     <input type="password" id="password" name="password" value="" />      </div>     <div> <label for="age">Age:</label>     <input type="number" id="password" name="password" value

HTML5 Video

Code: <object data="anchor.mp4" height="250px" width="250px"></object> <br /><br /> <embed src="anchor.mp4" height="250px" width="250px" />

HTML5 Video in Bangla Language

Code: <object data="anchor.mp4" height="250px" width="250px"></object> <br /><br /> <embed src="anchor.mp4" height="250px" width="250px" />

HTML5 Anchor tag

Code: <a href="http://google.com">Google</a><br /> <a href="imag.html#prevpage">Next</a><br /> <a href="#bottom">Down</a> <p><a name="up">Sed</a> ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui

HTML5 Anchor tag in Bangla

Code: <a href="http://google.com">Google</a><br /> <a href="imag.html#prevpage">Next</a><br /> <a href="#bottom">Down</a> <p><a name="up">Sed</a> ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui

HTML5 list

Code: <style> ul { list-style-type: circle; } ol { list-style-type: upper-roman; } </style> <ul> <li>India     <ol>         <li>Bombay</li>             <li>Kolkata</li>         </ol>         </li> <li>Pakistan</li> <li>Bangladesh</li> </ul> <ol> <li>India</li> <li>Pakistan</li> <li>Bangladesh</li> </ol> <dl> <dt>Banglades</dt>     <dd>This is a country in Asia</dd> <dt>Italy</dt>     <dd>This is a country in Europe</dd>    </dl>

HTML5 list in Bangla Language

Code: <style> ul { list-style-type:circle; } ol { list-style-type:upper-roman; } </style> <ul> <li>India     <ol>         <li>Bombay</li>             <li>Kolkata</li>             <li>Patna</li>         </ol>     </li> <li>Pakistan</li> <li>Bangladesh     <ol>         <li>Dhaka</li>             <li>Chittagong</li>             <li>Khulna</li>         </ol>        </li> </ul> <ol> <li>India</li> <li>Pakistan</li> <li>Bangladesh</li> </ol> <dl> <dt>Bangladesh</dt> <dd>It is in Asia.</dd> <dt>France</dt> <dd>It is in Europe.</dd> <dt>Egypt</dt> <dd>It is in Africa.</dd>        </dl>

HTML5 style tag

Code: <style type="text/css" media="all"> p { color: red; } </style> <p>We are learninh HTML5</p> <p>We are learning style tag</p>

HTML5 style tag in Bangla Language

Code: <style type="text/css" media="all"> p { color: red; } </style> <p>We are learninh HTML5</p> <p>We are learning style tag</p>

HTML5 Page refresh and redirect

Code: <meta http-equiv="refresh" content="3;url=66.html" /> <p>We are learning HTML5</p> <p>We are learning page refresh and redirect</p>

HTML5 Page refresh and redirect in Bangla Language

Code: <meta http-equiv="refresh" content="5;url=66.html" /> <p>We are learning HTML5</p> <p>We are learning Page refresh</p>

HTML5 link element in Bangla Language

Code: Code: <link href="sty.css" rel="stylesheet" media="all"  /> <link href="favicon.ico" rel="icon" type="image/x-icon" />  <p>We are learning html5</p> <p>We are learning link tag</p> sty.css: p { color: red; }

HTML5 link element

Code: <link href="sty.css" rel="stylesheet" media="all"  /> <link href="favicon.ico" rel="icon" type="image/x-icon" />  <p>We are learning html5</p> <p>We are learning link tag</p> sty.css: p { color: red; }

HTML5 Base element

Code: <base href="images/" /> <img src="pic1.jpg" height="250px" width="250px" /> <img src="pic2.jpg" height="250px" width="250px" /> <img src="pic3.jpg" height="250px" width="250px" /> <img src="pic4.jpg" height="250px" width="250px" />

HTML5 Base element in Bangla Language

Code: <link href="style.css" rel="stylesheet" media="all" /> <link href="favicon.ico" rel="icon" type="image/x-icon" /> <p>We are learning html5</p> <p>We are learning link tag</p> style.css: p { color: red; }

HTML5 hr element

Code: <style> hr { margin-right: 900px; margin-top: 50px; width: 400px; border: 10px dotted red; } </style> <p>We are learning HTML5</p> <hr /> <p>We are learning HR</p>

HTML5 hr element in Bangla Language

Code: <style> hr { margin-right: 900px; margin-top: 50px; width: 400px; border: 10px dotted red; } </style> <p>We are learning HTML5</p> <hr /> <p>We are learning HR</p>

HTML5 Global Attribute

I18n (Internationalization) in Bangla Language

Code: ltr - left to right rtl - right to left <p dir="rtl" >I love Bangladesh</p> <p lang="bn">আমি বাংলাদেশকে ভালোবাসি</p>

HTML5 Core Attributes

Code: <style> .x{ color: red; } #y { color: yellow; } </style> <div class="x">One</div> <div class="x">Two</div> <div id="y">Three</div> <div style="color:green;">Four</div> <div title="Five">Five</div>

CSS Style Form Part 1

Code: <style> form { width: 50%; border: 1px solid #666; } #name { margin: 10px; } input[type=text]{ width: 100%; padding: 10px; } #email { margin: 10px; } input[type=email]{ width: 100%; padding: 10px; } #submit { margin: 10px; } input[type=submit]{ width: 30%; background-color:#3F3; border:1px solid black; color: white; font-weight:bold; padding: 10px; } </style> <form> <div id="name"> <input type="text" placeholder="Name" /> </div> <div id="email">     <input type="email" placeholder="Email" /> </div> <div id="submit">         <input type="submit" value="Submit" /> </div> </form>

CSS Style Form Part 1 in Bangla Language

Code: <style> form { border: 2px solid #CCC; width: 50%; } #name { padding: 10px; } #email { padding: 10px; } #submit { padding: 10px; } input[type=text]{ width: 100%; padding: 10px; } input[type=email]{ width: 100%; padding: 10px; } input[type=submit]{ background-color:#690; padding: 10px; color: white; font-weight:bold; border: 1px solid black; width: 30%; } </style> <form> <div id="name"> <input type="text" placeholder="Name" />     </div>     <div id="email">     <input type="email" placeholder="Email" /> </div>     <div id="submit">        <input type="submit" value="Submit" /> </div> </form>