3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array[] = array ( 'age' => 'Lower limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 2, 'highlight' => false ); $array[] = array ( 'age' => 'Upper limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' =>3, 'highlight' => false ); $array[] = array ( 'age' => 'Limits:', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => null, 'highlight' => 1 ); $array[] = array ( 'age' => 'Freeze limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 1, 'highlight' => false ); $array2 = array ( 'ageing_data' => $array, ); print_r($array2); foreach ($array2 as $row) { print_r(implode('',array_slice($row, 1))); }
Output for 4.3.0 - 7.2.0
Array ( [ageing_data] => Array ( [0] => Array ( [age] => Lower limit [shipments] => [orders] => [ifs] => [items] => 2 [highlight] => ) [1] => Array ( [age] => Upper limit [shipments] => [orders] => [ifs] => [items] => 3 [highlight] => ) [2] => Array ( [age] => Limits: [shipments] => [orders] => [ifs] => [items] => [highlight] => 1 ) [3] => Array ( [age] => Freeze limit [shipments] => [orders] => [ifs] => [items] => 1 [highlight] => ) ) ) Notice: Array to string conversion in /in/0ts6J on line 44 Notice: Array to string conversion in /in/0ts6J on line 44 Notice: Array to string conversion in /in/0ts6J on line 44 ArrayArrayArray