| This article describes how to use the var_dump () method in php. For more information, see. An example of var_dump usage is as follows:
"; // Var_dump ($ c); $ d = var_dump ($ c); echo" "; Echo $ a; echo" "; Echo $ B; echo" ";?>Output: string (12) "alsdflasdf; a" NULLalsdflasdf; Note: The var_dump () method is used to determine the type and length of a variable and output the value of the variable. if the variable has a value, the output is the value of the variable and the data type is returned. 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 [,...]) Syntax: var_dump (var, var, bar ); Note: ensure that the variable in var_dump must exist. if the variable exists but the value is NULL, false is returned. If no variable exists, NULL is returned. This function has the output function, so you do not need to add other output functions. |