Welcome to the dotfiles wiki!
declare -A
declare -n
get_array_like_string() { hoge=("a" "b") echo {$hoge[@]} } arr=($(get_array_like_string))