1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00

Move default flag clarification to top of flags description (#4831) (#5224)

The note about PREG_PATTERN_ORDER being the default was buried at the
end of the flags list, making it easy to miss.
This commit is contained in:
Louis-Arnaud
2026-01-30 11:29:19 +01:00
committed by GitHub
parent 5a33c90d38
commit b731f708be

View File

@@ -60,6 +60,10 @@
<varlistentry>
<term><parameter>flags</parameter></term>
<listitem>
<simpara>
If no order flag is given, <constant>PREG_PATTERN_ORDER</constant> is
assumed.
</simpara>
<para>
Can be a combination of the following flags (note that it doesn't make
sense to use <constant>PREG_PATTERN_ORDER</constant> together with
@@ -246,10 +250,6 @@ Array
</varlistentry>
</variablelist>
</para>
<para>
If no order flag is given, <constant>PREG_PATTERN_ORDER</constant> is
assumed.
</para>
</listitem>
</varlistentry>
<varlistentry>