标签:数组 echo ring about data php 打印 dump was
1.echo语句
echo - 能够输出一个以上的字符串
<?php
echo "<h2>www.dc3688.com</h2>";
echo "Hello world!<br>";
echo "I‘m about to learn PHP!<br>";
echo "This", " string", " was", " made", " with multiple parameters.";
?>
2,print()语句
print - 只能输出一个字符串,并始终返回 1
<?php
print "<h2>www.dc3688.com</h2>";
print "Hello world!<br>";
print "I‘m about to learn PHP!";
?>
3,vardump 打印数组
打印所有的对象,查看对象内部的数据结构
注意 echo 比 print 稍快,因为它不返回任何值。
20181005 PHP 中 echo ,print,vardump 语句区别
标签:数组 echo ring about data php 打印 dump was
原文地址:https://www.cnblogs.com/sp1234/p/9745660.html