Created
November 13, 2019 08:59
-
-
Save AlexanderHentzsch/be2e43bc1fa6a208eec5f5baf2484e20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function write_array($arr) | |
{ | |
if (!is_array($arr)) { | |
return "Kein Array."; | |
} | |
$out = []; | |
foreach ($arr as $key => $value) { | |
$str = "[$key] $value"; | |
array_push($out, $str); | |
} | |
return implode("<br>", $out); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment