Answers for "when checking for string value in array with in_array it doesn't work php"

PHP
14

in_array php

<?php
$os = array("Apple", "Banana", "Lemon");
if (in_array("Apple", $os)) {
    echo "Yeah. Exist Apple";
}
if (!in_array("Buleberry", $os)) {
    echo "Oh, Don't Exist Blueberry!!!";
}
?>
Posted by: Guest on October-02-2020

Code answers related to "when checking for string value in array with in_array it doesn't work php"

Browse Popular Code Answers by Language