How do I search an array for a certain value?....
...and if successful, display "Value Found" else display "Value Not Found"?
<?php $value = 'Yes'; $array = array('No', 'Maybe', 'Probably', 'Yes'); if (in_array($value, $array)) { ?> Value Found <?php } else { ?> Value Not Found <?php } ?>
The in_array() function