add in_array

This commit is contained in:
2022-04-02 16:57:55 +03:00
parent b0dc89a18e
commit 909cd73762
2 changed files with 12 additions and 1 deletions

10
PHP/in_array.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
$os = array("Mac", "NT", "Irix", "Linux");
if (in_array("Irix", $os)) {
echo("Got Irix");
}
if (in_array("mac", $os)) {
echo("Got mac");
}
?>