- print_r: documentation ( source)
- array_merge: documentation ( source)
- max: documentation ( source)
<?php
$array = array(
0 => array(
'1' => '123',
'2' => '120',
'3' => '30',
'4' => '150'
),
1 => array(
'1' => '123',
'2' => '122',
'3' => '30',
'4' => '158'
),
2 => array(
'1' => '123',
'2' => '129',
'3' => '300',
'4' => '150'
)
);
$a = array_merge(...$array);
print_r($a);
echo max($a);