I hope anyone can help me with this question.
What I'm looking for is to search a string for a word
$text = 'is Apple, name testintapple test APPLE name test';
preg_match_all('/apple/i', $text, $output_array);
Return
array(
0 => Apple
1 => apple
2 => APPLE
)
I would like this to just return:
array(
0 => Apple
1 => APPLE
)