func_get_args

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns an array comprising a function's argument list
<?php func_get_args(): array
<?php     {

        $wantsASingleValue = is_string($properties);



        $properties = is_array($properties) ? $properties : func_get_args();



        $beforeReset = match (true) {

            empty($properties) => $this->all(),
<?php     {

        $results = [];



        foreach (is_array($properties) ? $properties : func_get_args() as $property) {

            $results[$property] = $this->hasProperty($property) ? $this->getPropertyValue($property) : null;

        }
<?php     public function except($properties)

    {

        $properties = is_array($properties) ? $properties : func_get_args();



        return array_diff_key($this->all(), array_flip($properties));

    }
<?php     static function commands($commands)

    {

        $commands = is_array($commands) ? $commands : func_get_args();



        Artisan::starting(fn(Artisan $artisan) => $artisan->resolveCommands($commands));

    }
<?php     {

        $results = [];



        foreach (is_array($properties) ? $properties : func_get_args() as $property) {

            $results[$property] = $this->hasProperty($property) ? $this->getPropertyValue($property) : null;

        }
<?php     public function except($properties)

    {

        $properties = is_array($properties) ? $properties : func_get_args();



        return array_diff_key($this->all(), array_flip($properties));

    }
<?php     public function has($ability)

    {

        $abilities = is_array($ability) ? $ability : func_get_args();



        foreach ($abilities as $ability) {

            if (! isset($this->abilities[$ability])) {
<?php             $policy = $this->resolvePolicy($class);



            $arguments = func_get_args();



            $user = array_shift($arguments);
<?php             }



            return isset($method)

                    ? $policy->{$method}(...func_get_args())

                    : $policy(...func_get_args());

        };

    }
<?php             return isset($method)

                    ? $policy->{$method}(...func_get_args())

                    : $policy(...func_get_args());

        };

    }
<?php     public static function using($guard = null, $field = null)

    {

        return static::class.':'.implode(',', func_get_args());

    }
<?php     public static function using($redirectToRoute = null, $passwordTimeoutSeconds = null)

    {

        return static::class.':'.implode(',', func_get_args());

    }
<?php     public function tags($names)

    {

        return new RedisTaggedCache(

            $this, new RedisTagSet($this, is_array($names) ? $names : func_get_args())

        );

    }
<?php             throw new BadMethodCallException('This cache store does not support tagging.');

        }



        $cache = $this->store->tags(is_array($names) ? $names : func_get_args());



        $cache->config = $this->config;
<?php     public function tags($names)

    {

        return new TaggedCache($this, new TagSet($this, is_array($names) ? $names : func_get_args()));

    }

}