Home  >  Article  >  php教程  >  var_export函数的使用方法

var_export函数的使用方法

WBOY
WBOYOriginal
2016-06-13 11:18:48858browse

 

var_export -- 输出或返回一个变量的字符串表示
描述
mixed var_export ( mixed expression [, bool return])


此函数返回关于传递给该函数的变量的结构信息,它和 var_dump() 类似,不同的是其返回的表示是合法的 PHP 代码。

您可以通过将函数的第二个参数设置为 TRUE,从而返回变量的表示。

比较 var_export() 和 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