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

Description of php connectors and parameter separators_PHP Tutorial

WBOY
Release: 2016-07-14 10:07:32
Original
1874 people have browsed it

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 (.): ...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template