What does it mean when var_dump reports the wrong string length?

后端 未结 1 1281
南笙
南笙 2020-12-06 16:56

I\'m trying to figure out why a variable isn\'t triggering a conditional that it should. var_dump reports something like this:

string(20) \"0\"
1条回答
  •  醉话见心
    2020-12-06 17:47

    It might be rendering html. i.e. var_dump('

    0

    ') would output string(20) "0" to the naked eye

    0 讨论(0)
提交回复
热议问题