What's the prefix for binary in PHP?

前端 未结 4 840
南方客
南方客 2020-12-03 02:31

It\'s neither 0x nor 0; what is it? Is there?

4条回答
  •  清歌不尽
    2020-12-03 03:21

    New in PHP 5.4 is the binary prefix, 0b. Think about portability when using it though; you'll need to be able to guarantee the server runs PHP 5.4+.

提交回复
热议问题