MediaWiki
REL1_22
|
00001 <?php 00029 class LanguageEs extends Language { 00030 00035 function commafy( $_ ) { 00036 if ( !preg_match( '/^-?\d{1,4}(\.\d+)?$/', $_ ) ) { 00037 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) ); 00038 } else { 00039 return $_; 00040 } 00041 } 00042 }