i have multi dimension arrays in which i want to look for some particular words
this is how my array looks like

```
Array
(
    [0] => Array
        (
            [sch_name] => Montfort School Roorkee
            [sch_degree] => High School
            [sch_field] => Commerce
            [sch_grade] => A+
            [sch_from_year] => 2007
            [sch_to_year] => 2015
            [sch_desc] => Montfort School was very nice
        )

    [1] => Array
        (
            [sch_name] => City Public
            [sch_degree] => 12
            [sch_field] => Commerce
            [sch_grade] => 12
            [sch_from_year] => 2007
            [sch_to_year] => 2015
            [sch_desc] => Great School
        )

)

```

Now suppose i want to find 'montfort' word in this multi dimensional array 

So i tried using this function

```
function searchForWord($id, $array) {
   foreach ($array as $key => $val) {
       if ($val['sch_name'] === $id) {
           return $key;
       }
   }
   return null;
}
echo $id = searchForWord('montfort', $p);

```

it resulted in nothing but when i wrote 'Montfort School Roorkee' result was found, why these word are so sensitive is there any other way to get values

can't i use something like we do in mysql query Like %keyword