What does the b in front of string literals do?

前端 未结 3 1781
广开言路
广开言路 2020-11-29 11:04
$binary = b\'Binary string\';

What consequences does it have to create a string as binary?

I couldn\'t find any hint about tha

3条回答
  •  清酒与你
    2020-11-29 11:36

    Binary casting is available since 5.2.1 but will not take effect until 6.0 when unicode strings also take effect.

    Which explains why this does nothing special right now for me on a server using 5.2.6:

    
    

提交回复
热议问题