original_string: public static function formatNumber($number, $decimals = 0, $invalid = '-'){
  
  		if(!is_numeric($number)) return $invalid;
  
  		$locale = localeconv();
  
  		return number_format($number, $decimals, $locale['decimal_point'], $locale['thousands_sep']);
  	}
code: public static function formatNumber($number, $decimals = 0, $invalid = '-'){
  
  		if(!is_numeric($number)) return $invalid;
  
  		$locale = localeconv();
  
  		return number_format($number, $decimals, $locale['decimal_point'], $locale['thousands_sep']);
  	}
code_tokens: public static function formatNumber ( $ number , $ decimals = 0 , $ invalid = '-' ) { if ( ! is_numeric ( $ number ) ) return $ invalid ; $ locale = localeconv ( ) ; return number_format ( $ number , $ decimals , $ locale [ 'decimal_point' ] , $ locale [ 'thousands_sep' ] ) ; }
docstring: Locale aware number-format.
  
  <p>Works similar to PHP's number_format(), only this version is locale
  aware and will automatically use the correct decimal and thousand
  seperators.</p>
  
  <p>The parameter {@link $invalid} can be used to supply a value to
  return in case a non-numeric value is passed in.</p>
  
  @param float $number
  @param integer $decimals
  @param string $invalid
  @return string
docstring_tokens: Locale aware number - format .