Home > php教程 > php手册 > PHP4用户手册:运算符-字符串运算符

PHP4用户手册:运算符-字符串运算符

WBOY
Release: 2016-06-13 10:22:25
Original
1431 people have browsed it


字符串运算符
有两个字符串运算符。第一个是连接运算符 (.),它返回连接右边和左边后生成的新字符串。第二个是自连接运算符(.=),它是在自己的右边加上一个字符串而成的新字符串。更多信息参见 网站建设服务器脚本类\PHPPHP用户手册fancylanguage.operators.assignment.html>Assignment Operators 。
$a = "Hello ";$b = $a . "World!"; // 现在,$b 成了 "Hello World!"$a = "Hello ";$a .= "World!"; // 现在,$a 成了 "Hello World!"

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template