MediaWiki  REL1_22
LanguageKu_ku.php
Go to the documentation of this file.
00001 <?php
00029 class LanguageKu_ku extends Language {
00030 
00038     function commafy( $_ ) {
00039 
00040         if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
00041             return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
00042         } else {
00043             return $_;
00044         }
00045     }
00046 }