Fatal error: Uncaught ArgumentCountError: Too few arguments to function

后端 未结 4 732
情话喂你
情话喂你 2020-12-09 23:10

I know there was a some questions related to this, but there are in c++ or other languages. I get this error and I\'m not sure what is wrong with my function.

My er

4条回答
  •  我在风中等你
    2020-12-10 00:04

    In php 7 instead of:

        public function register($name, $surname, $username, $password, $email)
    {
    ...
    

    use:

    public function register($name = null, $surname = null, $username = null, $password = null, $email = null)
    {
    ...
    

提交回复
热议问题