var_dump,var_export,print_r
后端开发-php教程
下面的示例看看这三个函数的具体的区别,其中var_dump和var_export比较少用,但他们两者又很相似。所以可以看看:php听书源码,vscode配置开发环境,ubuntu 显卡指令,tomcat的实际路径,sqlite数据库布尔类型,高楼层下水道会爬虫子吗,php decrypt,怀化seo优化收费标准,漂亮 政府网站,discuz模板安装教程lzw
<?php输出:
$a = array(1,1,32,322,3433,array(32,232,23232));
$b = 1234;
$c = "alsdfl;asdf";
$d = 'a';
$e = fopen("slsl.txt", "r");
var_dump($a);
echo "
";
var_dump($b);
echo "
";
var_dump($c);
echo "
";
var_dump($d);
echo "
";
var_dump($e);
echo "
";
echo "
";
echo "
";
echo "
";
var_export($a);
echo "
";
var_export($b);
echo "
";
var_export($c);
echo "
";
var_export($d);
echo "
";
var_export($e);
echo "
";
echo "
";
echo "
";
echo "
";
print_r($a);
echo "
";
print_r($b);
echo "
";
print_r($c);
echo "
";
print_r($d);
echo "
";
print_r($e);
echo "
";
vb 压缩软件源码,vscode浏览器开发,ubuntu打开lex,tomcat架设静态网页,爬虫太疯狂,php 缺省参数,百度seo推广产品,网站模板展示网站源码,系统演示模板lzw
Warning: fopen(slsl.txt) [function.fopen]: failed to open stream: No such file or directory in E:\mywww\yangtest\base1.php on line 6现在可以看到效果了,注意,最后一个不是我没有粘贴过来,而是他本来就没有显示什么东西。
array(6) { [0]=> int(1) [1]=> int(1) [2]=> int(32) [3]=> int(322) [4]=> int(3433) [5]=> array(3) { [0]=> int(32) [1]=> int(232) [2]=> int(23232) } }
int(1234)
string(11) "alsdfl;asdf"
string(1) "a"
bool(false)
array ( 0 => 1, 1 => 1, 2 => 32, 3 => 322, 4 => 3433, 5 => array ( 0 => 32, 1 => 232, 2 => 23232, ), )
1234
'alsdfl;asdf'
'a'
false
Array ( [0] => 1 [1] => 1 [2] => 32 [3] => 322 [4] => 3433 [5] => Array ( [0] => 32 [1] => 232 [2] => 23232 ) )
1234
alsdfl;asdf
a
会议预定系统 源码,格式化代码vscode,ubuntu和vim,诚信经营tomcat监控,东北养爬虫,php读取文件信息,安徽seo快照广告效果好,谁有免费php网站地址,dedecms wap手机模板lzw