"/> ">

Home >Backend Development >PHP Tutorial >PHP self-study no00005 data type string type

PHP self-study no00005 data type string type

WBOY
WBOYOriginal
2016-07-29 08:50:57787browse

<!--字符串型有3种定义方式,单引号(&#39;)双引号(")界定符(<<<)-->
<!--单引号原样输出,双引号赋值输出-->
<?php $zws = &#39;只会看到一遍&#39;;		//这句只声明变量不会输出
	echo &#39;$zws&#39;;		//这是单引号原样输出
	echo "<br />";		//这样换行可以否
	echo "$zws";		//双引号赋值输出

?>

PHP self-study no00005 data type string type

The above has introduced the PHP self-study no00005 data type string type, including aspects of the 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