Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return all the keys or a subset of the keys of an array
array_keys(array $array): array
        $seconds $this->getSeconds($ttl);



        if (
$seconds <= 0) {

            return 
$this->deleteMultiple(array_keys($values));

        }



        
$result $this->store->putMany($values$seconds);
    public static function divide($array)

    {

        return [
array_keys($array), array_values($array)];

    }
    public static function isAssoc(array $array)

    {

        
$keys array_keys($array);



        return 
array_keys($keys) !== $keys;

    }
    {

        
$keys array_keys($array);



        return 
array_keys($keys) !== $keys;

    }
    public static function map(array $array, callable $callback)

    {

        
$keys array_keys($array);



        try {

            
$items array_map($callback$array$keys);
    public function keys()

    {

        return new static(
array_keys($this->items));

    }
        foreach (array_keys($results) as $key) {

            
$results[$key] = $this->items[$key];

        }
    public function getNames(): array

    {

        return 
array_keys($this->commandMap);

    }

}
    {

        return 
$driver.':'.implode(';'array_map(function ($key) use ($arguments) {

            return 
sprintf('%s=%s'$key$arguments[$key]);

        }, 
array_keys($arguments)));

    }
        ];



        return 
str_replace(

            
array_keys($replace), array_values($replace), parent::buildClass($name)

        );

    }
    public function withoutGlobalScopes(array $scopes null)

    {

        if (! 
is_array($scopes)) {

            
$scopes array_keys($this->scopes);

        }



        foreach (
$scopes as $scope) {
        }



        if (
is_null($update)) {

            
$update array_keys(reset($values));

        }



        return 
$this->toBase()->upsert(
    public function withoutEagerLoad(array $relations)

    {

        
$relations array_diff(array_keys($this->model->getRelations()), $relations);



        return 
$this->with($relations);

    }
            ->keyBy($this->first()->getKeyName());



        
$attributes Arr::except(

            
array_keys($models->first()->getAttributes()),

            
$models->first()->getKeyName()

        );
        $this->classCastCache = [];

        
$this->attributeCastCache = [];



        return 
array_keys(get_object_vars($this));

    }