I have this script:

<?
$ojpp[] = "1";
$ojpp[] = "2";
$ojpp[] = "3";
$ojpp[] = "4";
$ojpp[][] = "1";
$ojpp[][] = "2";
$ojpp[][] = "3";
$ojpp[][][] = "1";
$ojpp[][][] = "2";
$test1 = count($ojpp); // first dimension
$test2 = count($ojpp[0]); // second dimension
$test3 = count($ojpp[0][0])"; // third dimension
echo $test1;
echo $test2;
echo $test3;
?>

I want to count the elements of each dimension, but the script give me an error, 
thanks in advanced for any help.

Reply via email to