31 $maxNumberOfCharsToCompare =
min(strlen($a), strlen($b));
32 while ($headLength < $maxNumberOfCharsToCompare &&
33 $a{$headLength} === $b{$headLength}) {
36 return substr($a,0,$headLength);
FUNCTION int min(int user_perm, int permExternal)
Get the minimum permission level required.
static getCommonHead($a, $b)