| PHP » GoLang | login |
            register |
            
            about | 
| GoLang Collator::compare
                                request it (575)
                            GoLang replacement for PHP's Collator::compare
                            [edit | history] 
                             Collator::comparecollator_compare(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Collator::compare -- collator_compare — Compare two Unicode strings DescriptionObject oriented style 
   public
   int 
   Collator::compare
    ( string  $str1, string$str2)Procedural style Compare two Unicode strings according to collation rules. Parameters
 
 Return ValuesReturn comparison result: 
 
 FALSEis returned.Warning This function may
return Boolean  Examples
 Example #1 collator_compare()example 
<?phpThe above example will output: s1 is greater than s2 | 
                    more
                     Most requested
 
                    more
                     Last requests
 |