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 if (! function_exists('ddd')) {

    function ddd()

    {

        $args = func_get_args();



        if (count($args) === 0) {

            throw new Exception('You should pass at least 1 argument to `ddd`');