- array_merge_recursive: documentation ( source)
- print_r: documentation ( source)
- array_replace_recursive: documentation ( source)
<?php
$default = [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
];
$override = [
'ssl' => [
'verify_peer' => true,
'verify_peer_name' => true,
],
];
print_r(array_merge_recursive($default, $override));
print_r(array_replace_recursive($default, $override));