3v4l.org

run code in 300+ PHP versions simultaneously
<?php $customer_data_new = array( 'billing_first_name' => array( '0' =>'Test', '1' => 1 ), 'billing_last_name' => array( '0' =>'Test', '1' => 1 ) ); $newData = array(); foreach( $customer_data_new as $key => $value ) { $newData[$key] = $value[0]; } print_r($newData);

preferences:
18.86 ms | 404 KiB | 5 Q