Integer is not being shown as die() argument?

后端 未结 3 1369
我寻月下人不归
我寻月下人不归 2020-12-19 03:41

I have this strange problem. When debugging, I have sometimetimes code looking like this

die()

3条回答
  •  有刺的猬
    2020-12-19 03:55

    See http://www.php.net/manual/en/function.exit.php (die() is equivalent to exit())

    If status is a string, this function prints the status just before exiting.

    If status is an integer, that value will be used as the exit status and not printed. Exit statuses should be in the range 0 to 254, the exit status 255 is reserved by PHP and shall not be used. The status 0 is used to terminate the program successfully.

提交回复
热议问题