The following example shows the differences between the three functions. var_dump and var_export are less useful, but they are similar. So you can see:
Copy codeThe Code is as follows: <? Php
$ A = array (32,322,343, 32,232,232 3, array (32 ));
$ B = 1234;
$ C = "alsdfl; asdf ";
$ D = 'a ';
$ E = fopen ("slsl.txt", "r ");
Var_dump ($ );
Echo "<br> ";
Var_dump ($ B );
Echo "<br> ";
Var_dump ($ c );
Echo "<br> ";
Var_dump ($ d );
Echo "<br> ";
Var_dump ($ e );
Echo "<br> ";
Echo "<br> ";
Echo "<br> ";
Echo "<br> ";
Var_export ($ );
Echo "<br> ";
Var_export ($ B );
Echo "<br> ";
Var_export ($ c );
Echo "<br> ";
Var_export ($ d );
Echo "<br> ";
Var_export ($ e );
Echo "<br> ";
Echo "<br> ";
Echo "<br> ";
Echo "<br> ";
Print_r ($ );
Echo "<br> ";
Print_r ($ B );
Echo "<br> ";
Print_r ($ c );
Echo "<br> ";
Print_r ($ d );
Echo "<br> ";
Print_r ($ e );
Echo "<br> ";
Output:
Copy codeThe Code is as follows: 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) ""
Bool (false)
Array (0 = & gt; 1, 1 = & gt; 1, 2 = & gt; 32, 3 = & gt; 322, 4 = & gt; 3433, 5 = & gt; array (0 = & gt; 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
Now you can see the effect. Note that the last one is not pasted, but is not displayed.