Home >Backend Development >PHP Tutorial >How to use the var_export function_PHP tutorial
var_export -- Export or return a string representation of a variable
Description
mixed var_export ( mixed expression [, bool return])
This function returns structural information about the variables passed to the function, and is similar to var_dump(), except that the representation returned is legal PHP code.
You can return a representation of a variable by setting the second parameter of the function to TRUE.
Compare var_export() and var_dump().