<?php
$num=array(array(1,2),array(3,4));
print_r($num);
echo "";
echo "Display Specific element";
functiondisplayelement($r,$c)
{
global $num;
echo $num[$r][$c];
}
displayelement(1,1);
echo "";
echo "";
echo "Delete Given element form array";
functiondeleteelement($e)
{
global $num;
for($i=0; $i
{
for($j=0;$j
{
if($e == $num[$i][$j])
unset($num[$i][$j]);
}
}
}
deleteelement(2);
print_r($num);
echo "";
echo "";
echo "Search element";
$nm=array("a","b","c","d");
if(in_array("a",$nm))
echo "element Found";
else
echo "Element Not found";
?>