So, say I have this array:
$var = array("Yes","No","Maybe");
And I’m allowing a user to search through that array by typing what they’re looking for into a text box, but they’ve typed “yes”.
You would think that because the word matches an item in the array, the search would return successful(or so I thought!). This is not the case.
Very crude example, I know, but it’s just that: An example of what I’m looking to do and the problem I’m having.
What, in php, would allow me to ignore the case of both the array item and the value given in the search, so this would result as true?