The phpvar_dump 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. this function displays the structure information about one or more expressions, including the expression type and value. The array recursively expands the value by shrinking the... SyntaxHighlighter. all ();
The php var_dump 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. this function displays the structure information about one or more expressions, including the expression type and value. The array recursively expands the value and displays its structure through indentation.
Format: var_dump (mixed expression [, mixed expression [,...])
Let's look at the var_dump syntax:
Var_dump (var, var, bar );
Let's take a look at one of my instances.
$ Ta = 1;
$ Tb ='t ';
Echo var_dump ($ ta, $ tb );
?>
The output is
Int (1) string (1) "t"
The first digit is int (1)
Simple, but note that the variables in var_dump must exist. if a variable exists but the value is NULL, false is returned. If no variable exists, NULL is returned.