Mixedvar_export (mixed $ expression [, bool $ return]) This function returns structure information about the variables passed to this function, which is similar to var_dump, the difference is that the returned representation is a valid PHP code. Q: What is a valid PHP code? I do it myself... mixed var_export (mixed $ expression [, bool $ return])
This function returns the structure information about the variables passed to this function. It is similar to var_dump (). The difference is that the returned representation is legal PHP code.
Q: What is a valid PHP code? I can test various types of variables by myself and output them all.
Reply content:
Mixed var_export (mixed $ expression [, bool $ return])
This function returns the structure information about the variables passed to this function. It is similar to var_dump (). The difference is that the returned representation is legal PHP code.
Q: What is a valid PHP code? I can test various types of variables by myself and output them all.
The valid code is the code you write in the editor, the code you see, the second parameter plus true, and then echo the results, you may understand.
The valid code is the code that conforms to the syntax. var_export can be output to a file and executed as php code. var_dump cannot.