Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
phpfiddle / fiddle_016322.php
Created June 27, 2018 08:15
[ Posted by Rakesh ] ddddddddddddddsddddddddddddddddddsddddddddddddddsddddddd
<?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.
@phpfiddle
phpfiddle / fiddle_088761.php
Created June 26, 2018 09:09
[ Posted by Rakesh ] xyzf dfd df df df df dfds df
<?php
?>
<?php
class ๐ŸŽˆ๐ŸŽˆ
{
function ๐ŸŽ‰($๐Ÿ˜Ž, $๐Ÿฏ, $๐ŸŽ)
{
echo "Eid Mubarak @2018 ๐Ÿ•Œ<br>";
return $๐Ÿ˜Ž + $๐Ÿฏ. "ษƒ ". $๐ŸŽ;
}
}
$๐Ÿ” = 3;
@phpfiddle
phpfiddle / fiddle_088786.php
Created June 15, 2018 21:26
[ Posted by Ibrahim Jafari ] ibrahim Jafari EID
<?php
class ๐ŸŽˆ๐ŸŽˆ
{
function ๐ŸŽ‰($๐Ÿ˜Ž, $๐Ÿฏ, $๐ŸŽ)
{
echo "Eid Mubarak @2018 ๐Ÿ•Œ<br>";
return $๐Ÿ˜Ž + $๐Ÿฏ. "ษƒ ". $๐ŸŽ;
}
}
$๐Ÿ” = 3;
<?php
class ๐ŸŽˆ๐ŸŽˆ
{
function ๐ŸŽ‰($๐Ÿ˜Ž, $๐Ÿฏ, $๐ŸŽ)
{
echo "Eid Mubarak @2018 ๐Ÿ•Œ<br>";
echo " ูƒู„ ุนุงู… ูˆุงู†ุชู… ุจุฎูŠุฑ <br>";
return $๐Ÿ˜Ž + $๐Ÿฏ. "ษƒ ". $๐ŸŽ;
}
}
<?php
class ๐ŸŽˆ๐ŸŽˆ
{
function ๐ŸŽ‰($๐Ÿ˜Ž, $๐Ÿฏ, $๐ŸŽ)
{
echo "Eid Mubarak @2018 ๐Ÿ•Œ<br>";
echo " ูƒู„ ุนุงู… ูˆุงู†ุชู… ุจุฎูŠุฑ <br>";
return $๐Ÿ˜Ž + $๐Ÿฏ. "ษƒ ". $๐ŸŽ;
}
@phpfiddle
phpfiddle / fiddle_046191.php
Created June 9, 2018 13:34
[ Posted by Delanois Stephane ] try this please
<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;
@phpfiddle
phpfiddle / fiddle_054832.php
Created June 9, 2018 13:31
[ Posted by Delanois Stephane ] khgigiv hvj jh vjv
<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;
@phpfiddle
phpfiddle / fiddle_081005.php
Created June 7, 2018 12:30
[ Posted by Pardeep Kumar ] positive and negative number filter in array
<?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++;
@phpfiddle
phpfiddle / fiddle_076338.php
Created May 25, 2018 17:42
[ Posted by Alfonso Garcia ] Parser Test
<?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