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     public function execute($command, &$output = null, $cwd = null)

    {

        if (func_num_args() > 1) {

            return $this->doExecute($command, $cwd, false, $output);

        }
<?php             $this->io->writeError('Executing command ('.($cwd ?: 'CWD').'): '.$safeCommand);

        }



        $this->captureOutput = func_num_args() > 3;

        $this->errorOutput = '';



        $process = Process::fromShellCommandline($command, $cwd, null, null, static::getTimeout());
<?php     public function tempnam(string $dir, string $prefix/*, string $suffix = ''*/)

    {

        $suffix = \func_num_args() > 2 ? func_get_arg(2) : '';

        [$scheme, $hierarchy] = $this->getSchemeAndHierarchy($dir);
<?php     public function execute($command, &$output = null, $cwd = null)

    {

        if (func_num_args() > 1) {

            return $this->doExecute($command, $cwd, false, $output);

        }
<?php     private function doExecute($command, $cwd, $tty, &$output = null)

    {

        $this->captureOutput = func_num_args() > 3;

        $this->errorOutput = '';



        $callback = is_callable($output) ? $output : array($this, 'outputHandler');
<?php     public static function create($locale, $bundleName, $fallback)

    {

        Assert::assertSame(3, func_num_args());

        Assert::assertSame('root', $locale);

        Assert::assertSame('ICUDATA', $bundleName);

        Assert::assertFalse($fallback);
<?php     public function get($field)

    {

        Assert::assertSame(1, func_num_args());

        Assert::assertSame('Version', $field);



        return self::STUB_VERSION;
<?php     public function getVersion()

    {

        Assert::assertSame(0, func_num_args());



        return array('versionString' => $this->versionString);

    }