diff --git a/reference/intl/locale/isrighttoleft.xml b/reference/intl/locale/isrighttoleft.xml new file mode 100644 index 000000000000..0517ec6c82da --- /dev/null +++ b/reference/intl/locale/isrighttoleft.xml @@ -0,0 +1,96 @@ + + + + + + Locale::isRightToLeft + Check whether a locale uses a right-to-left writing system + + + + &reftitle.description; + + public + static + bool + Locale::isRightToLeft + + stringlocale + "" + + + + + Determines whether a locale uses a right-to-left writing system. + + + + This method relies on the ICU library and evaluates the dominant script + associated with the locale. + + + + If an empty string is provided, the default locale is used. + + + + + &reftitle.parameters; + + + locale + + + The locale identifier. If empty, the default locale is used. + + + + + + + + &reftitle.returnvalues; + + Returns &true; if the locale uses a right-to-left + writing system, or &false; otherwise. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + PHP 8.5.0 + + Added Locale::isRightToLeft. + + + + + + + + + &reftitle.examples; + + Checking text direction for a locale + + + + + + +