[DOC-CVS] [doc-en] master: Add locale_is_right_to_left()

[email protected] (Jakub Vrana) Thu, 9 Jul 2026 15:18:14 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Jakub Vrana (vrana)
Date: 2026-07-09T17:12:13+02:00

Commit: https://github.com/php/doc-en/commit/fe74bcd7c2697f7e955372f4e8d2f755c0f0c779
Raw diff: https://github.com/php/doc-en/commit/fe74bcd7c2697f7e955372f4e8d2f755c0f0c779.diff

Add locale_is_right_to_left()

Changed paths:
  M  reference/intl/locale/isrighttoleft.xml


Diff:

diff --git a/reference/intl/locale/isrighttoleft.xml b/reference/intl/locale/isrighttoleft.xml
index 75ef6eafa557..c4dce39395de 100644
--- a/reference/intl/locale/isrighttoleft.xml
+++ b/reference/intl/locale/isrighttoleft.xml
@@ -6,11 +6,15 @@
 
  <refnamediv>
   <refname>Locale::isRightToLeft</refname>
+  <refname>locale_is_right_to_left</refname>
   <refpurpose>Check whether a locale uses a right-to-left writing system</refpurpose>
  </refnamediv>
 
  <refsect1 role="description">
   &reftitle.description;
+  <para>
+   &style.oop;
+  </para>
   <methodsynopsis role="Locale">
    <modifier>public</modifier>
    <modifier>static</modifier>
@@ -21,6 +25,13 @@
     <initializer>""</initializer>
    </methodparam>
   </methodsynopsis>
+  <para>
+   &style.procedural;
+  </para>
+  <methodsynopsis>
+   <type>bool</type><methodname>locale_is_right_to_left</methodname>
+   <methodparam><type>string</type><parameter>locale</parameter><initializer>""</initializer></methodparam>
+  </methodsynopsis>
 
   <simpara>
    Determines whether a locale uses a right-to-left writing system.
@@ -30,10 +41,6 @@
    This method relies on the ICU library and evaluates the dominant script
    associated with the locale.
   </simpara>
-
-  <simpara>
-   If an empty string is provided, the default locale is used.
-  </simpara>
  </refsect1>
 
  <refsect1 role="parameters">