How do I generate an Array string from an array in memory (php).

Posted by Itay Moav on Stack Overflow See other posts from Stack Overflow or by Itay Moav
Published on 2010-03-19T21:35:04Z Indexed on 2010/03/19 21:41 UTC
Read the original article Hit count: 152

Filed under:
|
|
|
|

I need to create a big array in my code, I have the values in several tables (for easy management). I select it and now I have all the values in an array, in memory in the way I want. My problem, I need to write this array down, into the code. Is there a way to take an array which sits in the memory and translate it into a string "array('g'=>'h','b'=>'d'....)" which I can then echo and just copy-paste into my code?

© Stack Overflow or respective owner

Related posts about php

Related posts about shortcut