开发者

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

开发者 https://www.devze.com 2022-12-29 12:49 出处:网络
I\'m trying to figure out why a variable isn\'t triggering a conditional that it should. var_dump reports somethi开发者_StackOverflow中文版ng like this:

I'm trying to figure out why a variable isn't triggering a conditional that it should. var_dump reports somethi开发者_StackOverflow中文版ng like this:

string(20) "0"

Why is it reporting a length of 20 when the length is clearly 1?


It might be rendering html. i.e. var_dump('<p class="abc">0</p>') would output string(20) "0" to the naked eye

0

精彩评论

暂无评论...
验证码 换一张
取 消