Integer is not being shown as die() argument?

后端 未结 3 1381
我寻月下人不归
我寻月下人不归 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:56

    die() function needs a string parameter.

    In your second example

    die($var."<-");
    

    $var is converted into String before concat with "<-". So this line will print out "15<-". This is normal. There is neither a bug nor any thing wrong.

提交回复
热议问题