Home  >  Article  >  Backend Development  >  PHP self-study no00007 data type string delimiter

PHP self-study no00007 data type string delimiter

WBOY
WBOYOriginal
2016-07-29 08:51:011398browse

<!--界定符和双引号没什么区别-->
<?php $i = &#39;显示该行的内容&#39;;								//声明变量
	/*注意下面界定符的<<<后面与zws之间不能有任何字符要紧跟*/
	echo <<<zws
	和双引号没有什么区别,\$i同样可以被输出出来<p>  	
	\$i的内容为:$i
zws;
/*注意:上面界定符的结束行 不能缩进,不能有注释,不能有空格 
(这很重否则代码会报错)
*/
?>	

PHP self-study no00007 data type string delimiter

以上就介绍了PHP self-study no00007 data type string delimiter,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

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