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:
Copy codeThe Code is as follows:
Var_dump (var, var, bar );
Let's take a look at one of my instances.
Copy codeThe Code is as follows:
<? Php
$ Ta = 1;
$ Tb = 'T ';
Echo var_dump ($ ta, $ tb );
?>
The output is
Copy codeThe 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.