<?php $needle = "Sam"; $haystack = array("Johnny", "Timmy", "Bobby", "Sam", "Tammy", "Danny", "Joe"); if (in_array($needle, $haystack)) { print "$needle is in the array!\n"; } else { print "$needle is not in the array\n"; } ?>
You have javascript disabled. You will not be able to edit any code.