Something exactly like the LIKE '%word%' in mysql. If $stuff contains 'lala' then bla bla Guess you got what I mean.