Suche für die partielle übereinstimmung Wert in ein Array

Ich bin auf der Suche nach einer Funktion, wo angesichts dieses array,

array(
 [0] =>
  array(
   ['text'] =>'I like Apples'
   ['id'] =>'102923'
 )
 [1] =>
  array(
   ['text'] =>'I like Apples and Bread'
   ['id'] =>'283923'
 )
 [2] =>
  array(
  ['text'] =>'I like Apples, Bread, and Cheese'
  ['id'] =>'3384823'
 )
 [3] =>
  array(
  ['text'] =>'I like Green Eggs and Ham'
  ['id'] =>'4473873'
 ) 
etc.. 

Ich soll die Suche nach der Nadel

"Brot"

und erhalten das folgende Ergebnis

[1] =>
  array(
   ['text'] =>'I like Apples and Bread'
   ['id'] =>'283923'
 )
 [2] =>
  array(
  ['text'] =>'I like Apples, Bread, and Cheese'
  ['id'] =>'3384823'

InformationsquelleAutor der Frage Chamilyan | 2011-08-03

Schreibe einen Kommentar