- print_r: documentation ( source)
- array_merge: documentation ( source)
- array_values: documentation ( source)
<?php
$tests = array(
'test1' => array( '11', '22', '33', '44' ),
'test2' => array( '44', '55', '66', '77' )
);
$new = array();
$new2 = array();
foreach( $tests as $test ) {
$new += array_values( $test );
$new2 = array_merge( $new2, $test );
}
print_r($new);
print_r($new2);