Punic v3.8.2-dev
  • Namespace
  • Class
  • Tree
  • Todo
  • Deprecated

Namespaces

  • Punic
    • Exception

Classes

  • Calendar
  • Comparer
  • Currency
  • Data
  • Language
  • Misc
  • Number
  • Phone
  • Plural
  • Script
  • Territory
  • Unit

Exceptions

  • Exception

Class Comparer

Various helper stuff.

Namespace: Punic
Located at Comparer.php

Methods summary

public
# __construct( string|null $locale = null, boolean $caseSensitive = false )

Initializes the instance.

Initializes the instance.

Parameters

$locale
$caseSensitive
public integer
# compare( string $a, string $b )

Compare two strings.

Compare two strings.

Parameters

$a
$b

Returns

integer
public boolean
# sort( array & $array, boolean $keepKeys = false )

Parameters

$array
$keepKeys

Returns

boolean
Punic v3.8.2-dev API documentation generated by ApiGen