Home >Backend Development >PHP Tutorial >PHP variables and string concatenators PHP contains string PHP string merge PHP string replacement

PHP variables and string concatenators PHP contains string PHP string merge PHP string replacement

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:48:481875browse

Connector - dot, itself is also an operator. Its real name should be "character operator". Its function is to concatenate two strings.

echo character . variable . character;

//The dot connects three values ​​into one, and it runs normally.

Example:

1. String + variable + string

echo("");

2. Variable + variable
echo($result.$result);

3. String + variable
echo("a".$result);

The above introduces PHP variables and string connectors, including PHP and string content. I hope it will be helpful to friends who are interested in PHP tutorials.

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