Output/Print an array as PHP code.


/ Published in: PHP
Save to your folder(s)

Prints an array (recursive) as PHP code (can be pasted into a php file and it will work).

Note: This function can process arrays with integers/strings/sub-arrays. It is impossible to process resources (they have a state), and while it is possible to process objects, I didn't see a need for it. However, if you need it to support objects as well, I'll be more than happy to alter the function. Just drop a comment to let me know.

URL: http://terraduo.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.