I am trying to change the values ββof a recursevely array, and all the examples that I have seen on stackoverflow are not suitable for what I want so far.
Basically, I want to translate a boolean into String.
foreach($this->data as $key=>$value) { if (is_bool($value)) { $this->data[$key] = var_export($value, true); } }
This only works on the first level of the array. Also, I tried changing the values ββwith array_walk_recursive without success.
Thanks in advance.
source share