Universeorange.com/Docs/

R3m/framework Function reference in.array

{in.array(Mixed $needle, Array $haystack, Bool $strict=false)}

Searches for needle in haystack using loose comparison unless strict is set.

needle
The searched value.

Note: If needle is a string, the comparison is done in a case-sensitive manner.

haystack
The array.
strict
If the third parameter strict is set to true then the {in.array()} function will also check the types of the needle in the haystack.

Returns true if needle is found in the array, false otherwise.

More information:

https://www.php.net/manual/en/function.in-array.php

Last modified: 2021-06-07

© 2021 universeorange.com