Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return all the keys or a subset of the keys of an array
<?php array_keys(array $array): array
<?php         if (isset($this->newDirectives[$directiveContent]) === false) {

            $error = 'Declare can only be used with the directives %s. Found: %s';

            $data  = [

                \implode(', ', \array_keys($this->newDirectives)),

                $directiveContent,

            ];
<?php     public function register()

    {

        $tokens   = \array_keys($this->targetedTokens);

        $tokens[] = \T_STRING;



        return $tokens;
<?php             if (isset($tokens[$i]['nested_parenthesis']) === true) {

                $nestedParenthesis     = $tokens[$i]['nested_parenthesis'];

                $nestedOpenParenthesis = \array_keys($nestedParenthesis);

                $lastOpenParenthesis   = \array_pop($nestedOpenParenthesis);



                $previousNonEmpty = $phpcsFile->findPrevious(