How can arrays with both numerical and string indexes be handled in PHP?

Arrays with both numerical and string indexes can be handled in PHP by using the `array_merge()` function to combine the arrays with numerical and string keys into a single array. This function will merge the arrays while preserving the keys, allowing for both types of indexes to coexist in the resulting array.

$numericArray = [0 => 'apple', 1 => 'banana'];
$stringArray = ['first' => 'cherry', 'second' => 'date'];

$combinedArray = array_merge($numericArray, $stringArray);

print_r($combinedArray);