Home  >  Article  >  Backend Development  >  PHP data type string type

PHP data type string type

黄舟
黄舟Original
2016-12-22 10:30:031541browse

The string type in PHP is String. This variable type is used whether it is a single character or multiple characters. To assign a string to a string variable, you need to add double quotes at the beginning and end, such as "This is a string". When the

character is applied for line break, you can use the overflow character, that is, a backslash plus a specified symbol, such as n for line break, t for tab, etc. More escape characters are shown in Table 2-1.

PHP data type string type

The above is the content of the string type of PHP data type. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn