3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderdata = array( array ( 'id' => 20992, 'key' => '_billing_parent_first_name', 'value' => 'Father First Name', ), array ( 'id' => 20993, 'key' => '_billing_parent_last_name', 'value' => 'Father Last Name', ), array ( 'id' => 20994, 'key' => '_billing_parent_email', 'value' => 'father@test.com', ) ); $postable = array(); foreach( $orderdata as $data ){ $postable[$data['key']] = $data['value']; } var_dump( $postable );

preferences:
26.18 ms | 404 KiB | 5 Q