php8.5
Home/ Manual/ intl / transliterator/ Transliterator::__construct

Transliterator::__construct

PHP function Edit on GitHub ✎

(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)

Private constructor to deny instantiation

Description

Transliterator::__construct()

This method should not be called. Its only purpose is to deny instantiation with the new operator.

Use the factory methods Transliterator::create or Transliterator::createFromRules instead.

Parameters Parameters

See Also

  • Transliterator::create
  • Transliterator::createFromRules

Source: reference/intl/transliterator/construct.xml · from the official PHP manual (php/doc-en)