1:单引号初始化 $hello1 = 'hello1';
print_r($hello1);
2:双引号初始化 $hello2 = "hello2";
printf($hello2);
3:heredoc 语法结构初始化 $hello3 = <<<TAG
hello3
TAG;
echo $hello3;
1:单引号初始化 $hello1 = 'hello1';
print_r($hello1);
2:双引号初始化 $hello2 = "hello2";
printf($hello2);
3:heredoc 语法结构初始化 $hello3 = <<<TAG
hello3
TAG;
echo $hello3;
转载于:https://www.cnblogs.com/deneyZhao/p/5474328.html