All IT and Non IT Interview Questions, MCQs, Online Quiz Questions, Engineering VIVA Questions
<?php $qpt = 'Eat to live, but not live to eat'; echo preg_match("/^to/", $qpt); ?>
<?php $x=array("aaa","","ccc","ddd",""); $y=array_unique($x); echo count($x) . "," . count($y); ?>
<?php $father="mother"; $mother="son"; echo $$father; ?>
<?php $x=array(4,2,5,1,4,5,3,4); $y=array_count_values($x); echo count($y); ?>
<?php$arr = array(5 => 1, 12 => 2); $arr[] = 56; $arr["x"] = 42; echo var_dump($arr);?>
<?php$date="2009-5-19";$time="14:31:38";$datetime=$date.$time;echo date("Y-m-d:H:i:s",strtotime($datetime));?>
<?php $color=array("red","yellow","white"); $x=in_array("black",$color); if($x==0) echo "good bye"; if($x==1) echo "Hello"; ?>
Post a Comment
No comments:
Post a Comment