3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yesterdayArray = array ( 'project-id' => array ( 373482 => array ( 'responsible-ids' => array ( 129938 => array ( 0 => array ( 'task-id' => 1812, 'content' => 'HU-003-FRONT', 'progress' => 100, 'completed_On' => '2020-10-23', 'created_On' => '2020-10-14', 'responsible-ids' => 129938, 'responsible-name' => 'MaloM.' ), ), ), ), ), ); foreach ($yesterdayArray['project-id'] as $pid => $array) { foreach ($array['responsible-ids'] as $key => $rid) { echo $key . PHP_EOL; } } foreach ($yesterdayArray['project-id'] as $pid => $array) { print_r(array_keys($array['responsible-ids'])); }
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
129938 Array ( [0] => 129938 )

preferences:
101.09 ms | 1491 KiB | 4 Q