IntlDatePatternGenerator::create
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.1.0)
Creates a new IntlDatePatternGenerator instance
Description
IntlDatePatternGenerator::create(string|null $locale = null): IntlDatePatternGenerator|null
IntlDatePatternGenerator::__construct(string|null $locale = null)
Creates a new IntlDatePatternGenerator instance.
Parameters
localeThe locale. If null is passed, uses the ini setting intl.default_locale.
Return Values
Returns an IntlDatePatternGenerator instance on success, or null on failure.