src/Peekmo/JsonPath/JsonPath.php
private function strpos_array($haystack, array $needles)
    {
        $closer = 10000;
        foreach($needles as $needle) {
            if (false !== $pos = strpos($haystack, $needle)) {
                if ($pos < $closer) {
                    $closer = $pos;
                }
            }
        }

        return 10000 === $closer ? false : $closer;
    }
private function strpos_array($haystack, array $needles)
    {
        $closer = 10000;
        foreach($needles as $needle) {
            if (false !== $pos = strpos($haystack, $needle)) {
                if ($pos < $closer) {
                    $closer = $pos;
                }
            }
        }

        return 10000 === $closer ? false : $closer;
    }
private function strpos_array ( $ haystack , array $ needles ) { $ closer = 10000 ; foreach ( $ needles as $ needle ) { if ( false !== $ pos = strpos ( $ haystack , $ needle ) ) { if ( $ pos < $ closer ) { $ closer = $ pos ; } } } return 10000 === $ closer ? false : $ closer ; }
Search one of the given needs in the array
@param string $haystack
@param array $needles
@return bool|string
Search one of the given needs in the array