MediaWiki
REL1_24
|
00001 <?php 00029 // @codingStandardsIgnoreStart Ignore class name is not in camel caps format error 00030 class LanguageKu_ku extends Language { 00031 // @codingStandardsIgnoreEnd 00039 function commafy( $_ ) { 00040 00041 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) { 00042 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) ); 00043 } else { 00044 return $_; 00045 } 00046 } 00047 }