[pmwiki-devel] php multi-dimensional array construction problem

Hans design5 at softflow.co.uk
Fri Feb 6 11:32:57 CST 2009


Friday, February 6, 2009, 4:29:06 PM, Daniel wrote:

> //Now $pointer is the leaf, so you can
> //do whatever you want to it.
> $pointer = "bar"; //Changed the leaf of $tree to 'bar'

Thanks, great!
The only change needed was in th erline above. It should be

  $pointer[$i] = $value;

otherwise the last key is not used and a branch is overwritten. 


Hans




More information about the pmwiki-devel mailing list