In Php, Calling an array when it's name is stored in a variable

Posted by tridat on Stack Overflow See other posts from Stack Overflow or by tridat
Published on 2010-03-17T01:32:40Z Indexed on 2010/03/17 1:41 UTC
Read the original article Hit count: 338

Filed under:
|

Possible duplicate:
http://stackoverflow.com/questions/433302/php-convert-a-string-to-variable

for example:

$test = array("this","is","a","test");

$what_array_to_read = "$test[0]";

function to read the array $test[0]

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays