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     public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null, $driverOptions = null)

    {

        if (func_num_args() > 4) {

            Deprecation::triggerIfCalledFromOutside(

                'doctrine/dbal',

                'https://github.com/doctrine/dbal/issues/4533',
<?php     public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null, $driverOptions = null)

    {

        if (func_num_args() > 4) {

            Deprecation::triggerIfCalledFromOutside(

                'doctrine/dbal',

                'https://github.com/doctrine/dbal/issues/4533',
<?php     public function getDummySelectSQL()

    {

        $expression = func_num_args() > 0 ? func_get_arg(0) : '1';



        return sprintf('SELECT %s', $expression);

    }
<?php     public function getDummySelectSQL()

    {

        $expression = func_num_args() > 0 ? func_get_arg(0) : '1';



        return sprintf('SELECT %s FROM sysibm.sysdummy1', $expression);

    }
<?php     public function getDummySelectSQL()

    {

        $expression = func_num_args() > 0 ? func_get_arg(0) : '1';



        return sprintf('SELECT %s FROM DUAL', $expression);

    }
<?php     public function like($x, $y/*, ?string $escapeChar = null */)

    {

        return $this->comparison($x, 'LIKE', $y) .

            (func_num_args() >= 3 ? sprintf(' ESCAPE %s', func_get_arg(2)) : '');

    }
<?php     public function notLike($x, $y/*, ?string $escapeChar = null */)

    {

        return $this->comparison($x, 'NOT LIKE', $y) .

            (func_num_args() >= 3 ? sprintf(' ESCAPE %s', func_get_arg(2)) : '');

    }
<?php     public function where($predicates)

    {

        if (! (func_num_args() === 1 && $predicates instanceof CompositeExpression)) {

            $predicates = CompositeExpression::and(...func_get_args());

        }
<?php     public function having($having)

    {

        if (! (func_num_args() === 1 && $having instanceof CompositeExpression)) {

            $having = CompositeExpression::and(...func_get_args());

        }
<?php     public function fetch(int $mode = FetchMode::ASSOCIATIVE)

    {

        if (func_num_args() > 1) {

            throw new LogicException('Only invocations with one argument are still supported by this legecy API.');

        }
<?php     public function fetchAll(int $mode = FetchMode::ASSOCIATIVE): array

    {

        if (func_num_args() > 1) {

            throw new LogicException('Only invocations with one argument are still supported by this legecy API.');

        }
<?php         $this->types[$param]  = $type;



        try {

            if (func_num_args() > 3) {

                return $this->stmt->bindParam($param, $variable, $type, $length);

            }