If you're new to the PHP language and are looking for the full scoop on working with the string datatype, look no further than this new post from Mrinmoy Ghoshal. It's an excellent (and quite complete) resource for just about everything involving strings in PHP.
A string is series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character set, and hence does not offer native Unicode support. See details of the string type.
The tutorial is broken up into different sections for easier consumption:
- Single quoted
- Double quoted
- Heredoc
- Nowdoc
- Variable parsing
- String access and modification by character
- Useful functions and operators
- Converting to string
- String conversion to numbers
- Details of the String Type
没有评论:
发表评论