Quote:
Originally Posted by dgkindy
I am getting the following errors and cannot see the the problem.
|
You're getting those errors because the variables $po and $milestone are not getting initialized. As far as counting in a particular 'direction', assuming you visualize the array as a cube:
PHP Code:
$height = count($milestone);
$width = count($milestone[$x]);
$depth = count($milestone[$x][$y]);
Keep in mind that the width is dependent on the row and the depth is dependent on the row and column.
Quote:
Originally Posted by davidj
3d array !!
You sure you need that depth?
|
I've found it necessary a few times. I don't know exactly what the OP is doing so I can't comment on whether it is a good approach, but sometimes the situation calls for it.
Last edited by NullPointer; 04-29-2010 at 07:32 AM..
|