MediaWiki  REL1_19
LanguageBg.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class LanguageBg extends Language {
00016         function commafy( $_ ) {
00017                 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
00018                         return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
00019                 } else {
00020                         return $_;
00021                 }
00022         }
00023 }