Home  >  Article  >  Backend Development  >  How to use the var_export function_PHP tutorial

How to use the var_export function_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:02:41691browse

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().

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn