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.
- Host: GitHub
- URL: https://github.com/bebbolus/strpos_array
- Owner: Bebbolus
- Created: 2017-01-19T16:28:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-19T16:33:29.000Z (over 8 years ago)
- Last Synced: 2025-01-16T02:23:22.127Z (5 months ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
```