/ Published in: Other
Expand |
Embed | Plain Text
public function flatArray($array) { foreach ($array as $key => $value) { if(is_array($value)) { if(count($value) != 0) $out[$key] = $this->flatArray($value); } else { $out[$key] = $value; } } return $out; }
You need to login to post a comment.
