<?php $input = ['key1','value1','key2','value2','key3','value3']; var_export(array_column(array_chunk($input, 2), 1, 1));
You have javascript disabled. You will not be able to edit any code.