I want to empty all values by empty string in a PHP array, and keeping all the keys names recursively.
Example:
<?php
$input =
['abc'=> 123,
'def'=> ['456', '789', [
'ijk' => '555']
]
];
I want my array to become like this:
<?php
$output = ['abc'=> '',
'def'=> ['', '', [
'ijk' => '']
]
];