func_num_args
symfony/var-dumper
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the number of arguments passed to the function
func_num_args
():
int
public function
__construct
(
string $name
,
$value
=
null
)
{
$this
->
class
=
$name
;
$this
->
value
=
1
<
\func_num_args
() ?
$value
:
$name
;
}
Caster/ConstStub.php
VarDumper
::
dump
(
$v
);
}
if (
1
<
func_num_args
()) {
return
func_get_args
();
}
Resources/functions/dump.php