func_num_args

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the number of arguments passed to the function
<?php func_num_args(): int
<?php     {

        $args = null;

        $adapter = $this->getPromiseTestAdapter(function () use (&$args) {

            $args = func_num_args();

        });



        $adapter->promise()->cancel();