I’ve a huge multidimensional array with no-way to foreach it :), Anyway, i want to replace all http
to a keyword so if the client convert his website into https
he won’t change all old images for the new url.
I tried array_map
, array_walk
and of course str_replace
but i found that i must make infinite foreach for every nested array.
Array (
[Repeater_1] => Array (
[1] => Array (
[user_defined_field_1] => http://Value_1
[user_defined_field_2] => http://Value_2
)
[2] => Array (
[user_defined_field_1] => http://Value_1
[user_defined_field_2] => http://Value_2
)
)
[Repeater_2] => Array (
[1] => Array (
[user_defined_field_3] => http://Value_1
[user_defined_field_4] => http://Value_2
)
[2] => Array (
[user_defined_field_3] => http://Value_1
[user_defined_field_4] => http://Value_2
)
)
)