src/Mobileka/MosaicArray/MosaicArray.php
public function pregValues($pattern, $defaultResult = null, $flags = 0)
    {
        $result = preg_grep($pattern, array_values($this->target), $flags);

        return $result ? array_values($result) : $defaultResult;
    }
public function pregValues($pattern, $defaultResult = null, $flags = 0)
    {
        $result = preg_grep($pattern, array_values($this->target), $flags);

        return $result ? array_values($result) : $defaultResult;
    }
public function pregValues ( $ pattern , $ defaultResult = null , $ flags = 0 ) { $ result = preg_grep ( $ pattern , array_values ( $ this -> target ) , $ flags ) ; return $ result ? array_values ( $ result ) : $ defaultResult ; }
Get values from an array by a key matching a regular expression
If nothing found, return a defaultResult

@param  string $pattern
@param  mixed  $defaultResult
@param  mixed  $flags
@return mixed
Get values from an array by a key matching a regular expression If nothing found return a defaultResult