children()->children()->word_list->word as $key => $value) { $word_list[] = (string)$value->surface; } ?> Google Maps JavaScript API Example