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

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

        return $result ? array_values($result) : $defaultResult;
    }
public function pregKeys ( $ pattern , $ defaultResult = null , $ flags = 0 ) { $ result = preg_grep ( $ pattern , array_keys ( $ this -> target ) , $ flags ) ; return $ result ? array_values ( $ result ) : $ defaultResult ; }
Get an array of target array's keys matching a regular expression
If nothing found, return a defaultResult

@param  string $pattern
@param  mixed  $defaultResult
@param  mixed  $flags
@return mixed
Get an array of target array s keys matching a regular expression If nothing found return a defaultResult