An open API service indexing awesome lists of open source software.

https://github.com/bebbolus/strpos_array

PHP strpos function but in this implementation the needles is an array. Also allows for a string, or an array inside an array.
https://github.com/bebbolus/strpos_array

Last synced: 3 months ago
JSON representation

PHP strpos function but in this implementation the needles is an array. Also allows for a string, or an array inside an array.

Awesome Lists containing this project

README

        

# strpos_array
PHP strpos function but in this implementation the needles is an array. Also allows for a string, or an array inside an array.

## Usage

```php
if (strpos_array($key, $arrayOfKey) === false) {
return false; //Key not found
} else {
return true; //Key found in the array
}
```