";
$g=array_search($sid,$numberList3);
echo "search ".$g."
";
echo "search len ".strlen($g)."
";
$arr='100,106,107';
$sid=106;
$mar=array($arr);
// echo $mar."
";
// echo $arr."
";
echo "search ".$sid."
";
$p=array_search($sid,$mar,true);
echo "next = ".$arr."
";
echo "string array ".implode(" ",$mar)."
";
echo "find ". $p."
";
echo "len find ". strlen($p)."
";
echo "============================================="."
";
$ar='5,3,7';
$numberList = array($arr); //Our new array
print_r ($numberList[0])."
"; //this prints 1
print_r ($numberList[0])."
"."2ndst"; //this prints 7
echo '1st';
$numberList = array(5,3,7); //Our new array
print_r ($numberList[0])."
"."3st"; //this prints 1
print_r ($numberList[2])."
"."4st"; //this prints 7
echo "=============================================="."
";;
$b=100;
$arr=array($b);
$p=array_search(30,$arr,true);
$p=array_search(30,$arr,true);
echo "1st ".strlen($p);
$a=106;
$b=$b.",".$a;
$arr=array($b);
$p=array_search($a,$arr,true);
echo "2nd ".strlen($p);
$a=107;
$b=$b.",".$a;
$arr=array($b);
$p=array_search($a,$arr,true);
echo "3nd ".strlen($p)."
";;
$arr = array(100,106);
echo "string array ".implode(" ",$mar)."
";
$a='30, 2, 5, 7, 90, 35, 78';
//$arr = array(30, 2, 5, 7, 90, 35, 78);
$arr=array($a);
echo "bbb ".array_search(30,$arr,true);
$p=array_search(106,$arr,true);
echo "new array=".$p;
echo " check ".strlen($p);
//exec("http://182.76.9.242:8888/Budget/budgetdataupload.php");
//header("Location: http://182.76.9.242:8888/Budget/budgetdataupload.php");
//exit;
//echo '';
$string = "11,5,21,100,101,102 am not aware of this";
if ( strpos( $string, '1' ) !== false ) :
echo 'true';
else:
echo 'false';
endif;
$string = "Oh! I am also not aware of this ";
if (preg_match("/\aware\b/", $string)) :
echo "A match was found.";
else:
echo "A match was not found.";
endif;
?>