What is the purpose of the array_combine function in PHP and how does it work?
The array_combine function in PHP is used to create an array by using one array for keys and another for its values. This function is useful when you have two arrays that need to be combined into a single associative array.
// Example of using array_combine function
$keys = array('a', 'b', 'c');
$values = array(1, 2, 3);
$combinedArray = array_combine($keys, $values);
print_r($combinedArray);