Hi everyone,
I am still very new to PHP and need some help. I have a multi-dimensional array and I want to make the script search it for certain strings and if present do something. How sould I best tackle this? Use an if loop, or the search array function, or something else? The string I want to search for will always be in location $array[something][0], but i want to search for a few strings and do the same action for all of them.
Example
if $array[$i][1] = "city1" or "city2" or city3 "; $i++;
do a bunch of stuff
else $i++;
or would i use the search_array function better?
I have never really used an if loop or a search_array loop before so how best should i proceed? Thanks.
Shayne