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     private function fillableColumns(array $columns)

    {

        return array_diff(

            array_keys($columns),

            [

                'id',

                'deleted_at',
<?php     private function hiddenColumns(array $columns)

    {

        return array_intersect(

            array_keys($columns),

            [

                'password',

                'remember_token',
<?php     protected function buildRoutes(Controller $controller)

    {

        $routes = '';

        $methods = array_keys($controller->methods());

        $className = $this->getClassName($controller);

        $slug = Str::kebab($controller->prefix());
<?php     private function visibleColumns(Model $model)

    {

        return array_diff(

            array_keys($model->columns()),

            [

                'password',

                'remember_token',
<?php             return $this->models[Str::studly(Str::plural($context))];

        }



        $matches = array_filter(array_keys($this->models), fn ($key) => Str::endsWith(Str::afterLast(Str::afterLast($key, '\\'), '/'), [Str::studly($context), Str::studly(Str::plural($context))]));



        if (count($matches) === 1) {

            return $this->models[current($matches)];
<?php             return $this->models[$context]->fullyQualifiedClassName();

        }



        $matches = array_filter(array_keys($this->models), fn ($key) => Str::endsWith($key, '\\' . Str::studly($context)));



        if (count($matches) === 1) {

            return $this->models[current($matches)]->fullyQualifiedClassName();
<?php         $tokens = $this->blueprint->parse($this->fixture($definition));

        $tree = $this->blueprint->analyze($tokens);

        $this->assertEquals(['created' => array_keys($paths)], $this->subject->output($tree));

    }