diff --git a/reference/intl/locale/isrighttoleft.xml b/reference/intl/locale/isrighttoleft.xml new file mode 100644 index 000000000000..09c274754f8b --- /dev/null +++ b/reference/intl/locale/isrighttoleft.xml @@ -0,0 +1,101 @@ + + + + + + Locale::isRightToLeft + Check whether a locale uses a right-to-left writing system + + + + &reftitle.description; + + + &style.oop; + + + + 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 + + + + +