PHP type forced conversion? At last, this post was edited by docs at 2013-11-0216:52:31 on the end of u012586110. php. netmanualzhlanguage. types. type-juggling.php # language. types. typecasting (binary) & nbsp; Conversion and mandatory conversion of the & nbsp; PHP type?
This post was last edited by u012586110 at 16:52:31
Http://docs.php.net/manual/zh/language.types.type-juggling.php#language.types.typecasting
(Binary) conversion and B prefix conversion support for PHP 5.2.1.
Converts string text and variables to binary strings.
Problem:
1. forced type conversion: (binary), which is a binary string.
What is a binary string?
Share:
------ Solution --------------------
The UTF-8 string "Chinese character" contains only two characters.
However, binary is '\ xe6 \ xb1 \ x89 \ xe5 \ xad \ x97', with six bytes, which are commonly referred to as the byte type.