Hey guys, i'm kind of stuck here, and was wondering if anyone could give me a hand.

I'm kind of new in PHP, and currently I'm experiencing a cycle problem.

I have a php page that recieve a list of variable number of arrays (it can be one array, or even 10), and what i want the cycle to do is, is to print out each value contained in each array.

Example of variables recieved through POST:
([course0] => Array ( [0] => BBB [1] => YA ) [course1] => Array ( [0] => EWA) [course3] => Array ( [0] => aaa))

Code:
	for($i = -1; $i < $num_course; $i++) // num_course is the number of arrays (course0,course1) that are recieved
			{
                  
                 $test = "course".$y;
     
                 for($x = 0; $x < sizeof($test); $x++)
                   {

                   echo("$test[$x]");
                   }

                        }

What i want it to do:


for($i = -1; $i < $num_course; $i++)
{

for($x = 0; $x < sizeof(COURSE0 ; COURSE 1 ; COURSE 3; COURSE N); $x++)
{

echo("$course0[$x] ; $course1[$x] ; $course3[$x] ; $courseN[$x] ");
}

}

i hope i made myself clear .

I would glady appreciate any help!