how can check value exit in array
<?php
$value = array("one","two","three","four");
$new_value = "five";
if (in_array($newvalue,$values)) { echo "$newvalue is already in the array!"; }
?>
<?php
$value = array("one","two","three","four");
$new_value = "five";
if (in_array($newvalue,$values)) { echo "$newvalue is already in the array!"; }
?>