Method String.common_prefix() Method common_prefix string common_prefix(array(string) strs) Description Find the longest common prefix from an array of strings.