How to use the var_export function_PHP tutorial

WBOY
Release: 2016-07-20 11:02:41
Original
691 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!