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
<?php | |
// Trimming String | |
$s1 = " Rakesh Kumar "; | |
//echo "Original String: ","<br/>"; | |
//var_dump($s1); | |
//echo "<br/>Length of original string: ",strlen($s1); //Returns the length of a string strlen(string) Returns the length of a string on success, and 0 if the string is empty | |
//echo "<br/>CHOP:\t"; | |
//var_dump(chop($s1)); //Remove whitespace and other predefined characters from the right end of a string. chop(string[,charlist]) Returns the modified string. |
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
<?php | |
?> |
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
<?php | |
class ๐๐ | |
{ | |
function ๐($๐, $๐ฏ, $๐) | |
{ | |
echo "Eid Mubarak @2018 ๐<br>"; | |
return $๐ + $๐ฏ. "ษ ". $๐; | |
} | |
} | |
$๐ = 3; |
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
<?php | |
class ๐๐ | |
{ | |
function ๐($๐, $๐ฏ, $๐) | |
{ | |
echo "Eid Mubarak @2018 ๐<br>"; | |
return $๐ + $๐ฏ. "ษ ". $๐; | |
} | |
} | |
$๐ = 3; |
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
<?php | |
class ๐๐ | |
{ | |
function ๐($๐, $๐ฏ, $๐) | |
{ | |
echo "Eid Mubarak @2018 ๐<br>"; | |
echo " ูู ุนุงู ูุงูุชู ุจุฎูุฑ <br>"; | |
return $๐ + $๐ฏ. "ษ ". $๐; | |
} | |
} |
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
<?php | |
class ๐๐ | |
{ | |
function ๐($๐, $๐ฏ, $๐) | |
{ | |
echo "Eid Mubarak @2018 ๐<br>"; | |
echo " ูู ุนุงู ูุงูุชู ุจุฎูุฑ <br>"; | |
return $๐ + $๐ฏ. "ษ ". $๐; | |
} |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous"> | |
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script> | |
<style> | |
body{ | |
background-color:black; | |
text-align:center; | |
color:white; |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous"> | |
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script> | |
<style> | |
body{ | |
background-color:black; | |
text-align:center; | |
color:white; |
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
<?php | |
$arr=array( -12, 11, -13, -5, 6, -7, 5, -3, -6); | |
$j=0; | |
echo '<pre>';print_r($arr); | |
foreach ($arr as $key=>$value){ | |
if ($arr[$key] < 0){ | |
$temp = $arr[$key]; | |
$arr[$key] = $arr[$j]; | |
$arr[$j] = $temp; | |
$j++; |
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
<?php | |
$dexLines = "DXS*CNV DE32*VA*V1/1*1 | |
ST*001*0001 | |
ID1*000000*CRANE--VER 43210 ****000000 | |
ID5*180525*0926 | |
CA6*83 | |
VA1*30260*139*30260*139 | |
CA3****154*16990**1590 | |
CA4***3670 | |
CA15*5090 |