in_array() is the function to Check if a value exists in an array using PHP. Here is an example of how it is used: –
$array = array("IN", "US", "UK", "AUS");
if (in_array("IN", $array)) {
echo "<p>IN is in array!</p>";
}
|
$array = array("IN", "US", "UK", "AUS");
if (in_array("IN", $array)) {
echo "<p>IN is in array!</p>";
}
|
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment