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

后端 未结 1 1263
南笙
南笙 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('<p class="abc">0</p>') would output string(20) "0" to the naked eye

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