Check Array To See If It Contains A String – in_array()
If you have an array that contains a hundred different values, you may be wondering how you can check if that array contains a certain string. As you may already know, you can use the foreach() function to echo out each value contained inside the array. But let’s imagine that we simply want to execute…