function __construct() { $this->useMbstring = setLocaleAsBrowser(LC_ALL); $locInfo = localeconv(); $this->decimalMark = $locInfo['mon_decimal_point']; $this->thSepMark = $locInfo['mon_thousands_sep']; $this->currencyMark = $locInfo['currency_symbol']; }
public function __construct() { $this->useMbstring = setLocaleAsBrowser(LC_ALL); $locInfo = localeconv(); $this->decimalMark = $locInfo['mon_decimal_point']; // @codeCoverageIgnoreStart if (strlen($this->decimalMark) == 0) { $this->decimalMark = '.'; } // @codeCoverageIgnoreEnd $this->thSepMark = $locInfo['mon_thousands_sep']; $this->currencyMark = $locInfo['currency_symbol']; }
function __construct($format = '') { $this->fmt = $format; $this->useMbstring = setLocaleAsBrowser(LC_TIME); date_default_timezone_set($this->tz); }