Blogger Information
Blog 29
fans 1
comment 1
visits 24865
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php中单引号双引号,转义符的使用方法 2018-4-12
谦谦允水的博客
Original
975 people have browsed it

实例

<?php 
	$pl='    i love you';//单引号原样输出
	$string='as122合计角度看{666}{$pl}""';
	echo $string.'<hr>';

	$du="123...ssss而非\n{$pl}";//双引号可以输出变量哟,厉害呢
	echo nl2br($du).'<hr>';     //nl2br换行

	$zy="'1111'";
	$br="<br>";
	echo '553333333:\'55555\'';
	echo "553333333:\"55555\"".'<br>';

	$html='<h1>852</h1>';
	echo 	'<h1>';

$pl=<<<HEREDOC
88855;
HEREDOC;
echo $pl;
 ?>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post