array_combine function in PHP Posted on December 2, 2021December 2, 2021 By christo No Comments on array_combine function in PHP 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); ?> php Tags:array_combine, php