Can you not use stristr on arrays??
Posted: Tue Apr 20, 2004 7:38 am
Can you not use stristr or strstr on arrays? or am i doing something wrong?
From my understanding it should output Sad, am I wrong?
Code: Select all
$stuff = array('Hello', 'Hacker', 'Cracker', 'Goat', 'Movie', 'Girl', 'Sad');
$is = stristr($stuff, 'S');
echo $is;