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 | |
$original = array('esfid'=> 'kldjfsdkfjd'); | |
$new = array( | |
'esfid' => '001GOdemoESFID0', | |
'opst' => 'won', | |
'opsfid' => '006c0000002fZvb', | |
'product' => 'ePm-d30a1', | |
'quantity' => '4', | |
'ename' => 'test', | |
'itemid' => '00kc0000007SdmU', |
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 | |
$array = array( | |
'red', | |
'orange', | |
'blue', | |
'green', | |
'yellow', | |
'purple', | |
'white', | |
'black', |
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 | |
echo "<p>\n"; | |
$counter=1; | |
while($counter < 10) | |
{ | |
echo "abc "; | |
$counter++; | |
} | |
echo"</p>\n"; | |
echo"<p>\n"; |
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 function get_json_format($results){ | |
//Format and return the result from the given json data | |
} | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title></title> |
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 | |
function stripeWords($para) | |
{ | |
$final_string=""; | |
$value=4; | |
$words = explode(" ", $para); | |
foreach( $words as $value ){ | |
if( strlen($final_string . " " . $value) < 4 ){ | |
if( !empty($final_string) ) $final_string .= " "; | |
$final_string .= $value; |
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 | |
function stripeWords($para){ | |
$text=explode(' ',$para); | |
foreach($text as $word) | |
{ | |
$length=strlen($word); | |
if($length >=4) | |
{ | |
echo $word; | |
echo " "; |
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 | |
function stripeWords($para){ | |
$text=explode(' ',$para); | |
foreach($text as $word) | |
{ | |
$length=strlen($word); | |
if($length >=4) | |
{ | |
echo $word," "; | |
} |
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 | |
function getDates($from_date, $to_date){ | |
$i=0; | |
if(!$from_date || !$to_date ) {return false;} | |
$dateMonthYearArr = array(); | |
$fromDate = strtotime($from_date); | |
$toDate = strtotime($to_date); | |
for ($currentDate = $fromDate; $currentDate <= $toDate; $currentDate += (60 * 60 * 24)) | |
{ |
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 | |
function getDates($from_date, $to_date){ | |
$dates = array(); | |
$step = '+1 day'; | |
$format = 'm/d/Y'; | |
$current = strtotime($from_date); | |
$to_date = strtotime($to_date); | |
while( $current <= $to_date ) { | |
$dates[] = date($format, $current); | |
$current = strtotime($step, $current); |
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 | |
function getDates($from_date, $to_date){ | |
$start = strtotime($from_date); | |
$end = strtotime($to_date); | |
$days = $end - $start; | |
$days = ceil($days/86400); | |
// echo $days; | |
$n=0; | |
$weekdays=array("MONDAY","TUESDAY","WEDNESDAY", "THURDAY", "FRIDAY", "SATURDAY","SUNDAY" ); | |
$weekdays1=array("MON","TUE","WED", "THU", "FRI", "SAT","SUN" ); |