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     protected function wrapJsonPathAttributes($path)

    {

        $quote = func_num_args() === 2 ? func_get_arg(1) : "'";



        return collect($path)->map(function ($attribute) {

            return $this->parseJsonPathArrayKeys($attribute);
<?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 tempnam(string $dir, string $prefix/*, string $suffix = ''*/)

    {

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

        [$scheme, $hierarchy] = $this->getSchemeAndHierarchy($dir);