I'm new to PHP.
I'm trying to search through an array of data, and match any item that contains a partial string
EX: if user inputs "oh" the search will find any item containing "oh", so the item could be John.
I have this so far, doesn't match anything
if(isset($_POST['firstName'])){
for($i = 0 ; $i<count($studentInfo);$i++){
if(strpos($firstName,$studentInfo[$i][2]))
of course there is other code to do something once the item is found. I've seen a lot of substr methods, and STRPOS functions, I just can't figure out how to make it work with my code.