Hello,
What is a common way to print elements of a multidimensiona l array? I
treid to do it in the straightforward way:
$input_list[0][0] = "Something" ;
print "$input_lis t[0][0]";
And it does not work.
The solution that I found is to use intermediate variable:
$array = $input_list[0];
print "$array[0]";
printArray( $output_list[0] );
Are there any more elegant (or just common) ways to do it?
What is a common way to print elements of a multidimensiona l array? I
treid to do it in the straightforward way:
$input_list[0][0] = "Something" ;
print "$input_lis t[0][0]";
And it does not work.
The solution that I found is to use intermediate variable:
$array = $input_list[0];
print "$array[0]";
printArray( $output_list[0] );
Are there any more elegant (or just common) ways to do it?
Comment