Snippets tagged “preg-grep”
1 snippet uses this tag.
- search a php array for partial string matchPHP
You can use the array_filter() function in PHP to search through an array and return only the elements that contain a certain string.
1 snippet uses this tag.
You can use the array_filter() function in PHP to search through an array and return only the elements that contain a certain string.