array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'class.argumentcounterror.php', 1 => 'ArgumentCountError', ), 'up' => array ( 0 => 'reserved.exceptions.php', 1 => '预定义异常', ), 'prev' => array ( 0 => 'error.clone.php', 1 => 'Error::__clone', ), 'next' => array ( 0 => 'class.arithmeticerror.php', 1 => 'ArithmeticError', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'language/predefined/argumentcounterror.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= PHP 7.1.0, PHP 8)
ArgumentCountError 当传递给用户定义的函数或方法的参数太少时被抛出。
当传递到非可变内置函数的参数太多时,也会抛出此错误。