func_get_arg

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return an item from the argument list
<?php func_get_arg(int $position): mixed
<?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)) : '');

    }