array_combine function in PHP December 2, 2021 by Codingtube team Table of Contents Syntax of array_combineExample of array_combine Syntax of array_combine array array_combine(array keys, array values) Example of array_combine <?php $a = array('green', 'red', 'yellow'); $b = array('avocado', 'apple', 'banana'); $c = array_combine($a, $b); print_r($c); ?>