I’ve read in a CSV (Comma Delimited Excel Spreadsheet) file and stored it in multiple arrays (one for each column). When people search for “Deniatus Field Hockey Schedule”, they get the search result (which is returned via AJAX). When they search for “Deniatus Hockey”, they do not see “Deniatus Field Hockey Schedule” as a netted result.
Is there something like the “like” operator used with MySQL that’s available for use with PHP arrays?
You can search for strings in strings using
stripos.http://php.net/stripos
You can use it as a callback function looping over all array entries.