This article provides a detailed analysis of the phpvar_dump () function. For more information, see
Php var_dumpA function is used to determine the type and length of a variable and output the value of the variable. if the variable has a value, it is the value of the variable and returns the data type.
Let's look at the var_dump syntax:
The code is as follows:
Var_dump (var, var, bar );
Let's take a look at one of my instances.
The code is as follows:
$ Ta = 1;
$ Tb ='t ';
Echo var_dump ($ ta, $ tb );
?>
The output is
The code is as follows:
Int (1) string (1) "t"
The first digit is int (1)
Simple, but note that the variable in var_dump must exist. if the variable exists but the value is null, false is returned;
PHP: What is the var_dump () function used?
For example, var_dump ($ get?
========================================================== =
This function displays the structure information about one or more expressions, including the expression type and value.