Skip to content

Instantly share code, notes, and snippets.

@DavidBruchmann
Last active June 27, 2017 13:56
Show Gist options
  • Save DavidBruchmann/4996290 to your computer and use it in GitHub Desktop.
Save DavidBruchmann/4996290 to your computer and use it in GitHub Desktop.
function do_something_recursive (array $arr_someArray) {
$result = array();
foreach($arr_someArray as $key => $value) {
if(is_array($value)) {
$result[$key] = do_something_recursive (array $arr_someArray)
} else {
$result[$key] = 'Here the value '.$value.' can be used or manipulated.'
}
}
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment