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