I want to search in PHP array , value are fetched from table;
e.g. string is a field in table;
string value are :
1st Value :- Hello my name is harkesh
2nd Value :- Last name is Chauhan
while($data = mysql_fetch_array($query))
{
$array[] = $data['string']
}
now array is pulling the complete string value but now i want to search for particular words in $array[];
e.g
if i type " Last name" it should show me 2nd Value " Last name is Chauhan" and if i type " name" it should show me both the values as both of them contains "name"
How that can be achieved..Thanks