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

WBOY
Release: 2016-07-29 08:48:48
Original
1813 people have browsed it

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.

Related labels:
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