Home  >  Article  >  Backend Development  >  Description of php connectors and parameter separators_PHP Tutorial

Description of php connectors and parameter separators_PHP Tutorial

WBOY
WBOYOriginal
2016-07-14 10:07:321861browse

In PHP, there is only one string operator, the concatenation operator (.) is used to concatenate two string values.

To join two variables together, use the dot operator (.):
Example:
1
2
$txt1="Hello World";
3
$txt2="1234";
4
echo $txt1 .' ' . $txt2;
5
?>
Using . and, is the same result; PHP is a language with loose syntax, array parameters, etc. use parameter separator,

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477862.htmlTechArticleIn PHP, there is only one string operator, the concatenation operator (.) is used to combine two characters String values ​​are concatenated. To join two variables together, use the dot operator (.): ...
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