MediaWiki
REL1_19
|
00001 <?php 00002 00008 class LanguageEt 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 }