What does (binary) casting actually do and why it should not be relied upon?
问题 I'm using PHP 7.2.12 I come across following statement from the Type Casting section of PHP Manual : (binary) casting and b prefix forward support was added in PHP 5.2.1. Note that the (binary) cast is essential the same as (string), but it should not be relied upon. I didn't understand the above text thoroughly. Someone please explain to me with good explanation. I studied the following code examples given in PHP Manual on the same page : <?php $binary = (binary) $string; var_dump($binary);