PHP string == name of array ?

Posted by John Isaacks on Stack Overflow See other posts from Stack Overflow or by John Isaacks
Published on 2010-06-18T15:31:46Z Indexed on 2010/06/18 15:33 UTC
Read the original article Hit count: 166

Filed under:

If I have an array named $myArray how can I get a reference to it from a string of the same name myArray. I tried:

eval('myArray');

But that gave me an error.

© Stack Overflow or respective owner

Related posts about php