in_array: A way to search through an array for a certain match. eg. To check if we have oranges i our array.
Example 1:
<?php
$fruit_list=array ("apple", "orange", "watermelon", "coconut", "strawberry");
if ( in_array ("oranges", $fruit_list))
{
echo "Yes, we have some oranges";
} else
{
echo "We have ran out of oranges and need to order some";
}
?>