var_export - 输出或返回一个变量的字符串表示。

mixed var_export ( mixed $expression [, bool $return ] )

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

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

$a = array (1, 2, array ("a", "b", "c"));

var_export ($a);

原文

http://www.php.net/manual/zh/function.var-export.php

相关文章:

  • 2021-04-05
  • 2021-11-11
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2021-10-28
  • 2021-06-20
相关资源
相似解决方案