Is it possible to delay variable implement(?)/recognize(?) in PHP?

Posted by Relax on Stack Overflow See other posts from Stack Overflow or by Relax
Published on 2010-04-02T14:32:50Z Indexed on 2010/04/02 16:43 UTC
Read the original article Hit count: 213

Filed under:

For example,

A.php:

<?php
$a = array('name'=>'wine[$index][name]',
           'value'=>'wine[$index][value]'
          )
?>

B.php:

include_once(a.php)
...
$index = 0;
$b = $a;

I know this example won't work, just for explaination, i wanna if it is possible (if possible, how?) to delay variable $index to take value when $b = $a ?

© Stack Overflow or respective owner

Related posts about php