Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

in array php

// Syntax:
in_array ( mixed $needle , array $haystack , bool $strict = false ) : bool

// Example:
$fruits = array('apple', 'banana', 'orange');
in_array('apple', $fruits); // true
in_array('mango', $fruits); // false 
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #array #php
ADD COMMENT
Topic
Name
6+2 =