¡@

Home 

php Programming Glossary: strcommonmax

finding common prefix of array of strings

http://stackoverflow.com/questions/1336207/finding-common-prefix-of-array-of-strings

false Get the common string prefix of the first 2 strings strCommonMax strCommonPrefixByChar array arr 0 arr 1 if strCommonMax false.. strCommonMax strCommonPrefixByChar array arr 0 arr 1 if strCommonMax false return false if strCommonMax return strCommonMaxLength.. array arr 0 arr 1 if strCommonMax false return false if strCommonMax return strCommonMaxLength strlen strCommonMax Now start looping..