PHP Example
Screen shot
To Searching data in an Array.

<?php
if(isset($_POST['btnsubmit']))
{
$found='no';
$data=array(23,56,67,78,29);
$num=$_POST['num'];
foreach($data as $value)
{
if($value==$num)
{
$found='yes';
break;
}
}

if($found=='yes')
echo "Value Found";
else
echo "Value not Found";
}
?>
<html>
<head>
<title>My array</title>
</head>
<body>
<h3>Search value in an Array</h3>
<form name="frm" action="" method="post">
Enter value<input name="num" type="text">
<input name="btnsubmit" type="submit" value="Submit">
</form>
</body>
</html>