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,
http://www.bkjia.com/PHPjc/477862.htmlwww.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 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