I am trying add value to a mutlidimensional array but I am slightly confused as how to achieve this.
I am not sure quite how to explain what I want so I will demonstrate it below:
<?php
$value = 'text';
$array = array();
I want the length of the array to be based upon the value of $int e.g.
$int = 3;
$array[][][] = $value;
$int = 4;
$array[][][][] = $value;
?>
Is this possible??
Thanks