mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Added strcoll() documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@39891 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d13d821b8b
commit
980364095d
1 changed files with 41 additions and 0 deletions
|
@ -2051,6 +2051,47 @@ if (!strcasecmp ($var1, $var2)) {
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.strcoll">
|
||||
<refnamediv>
|
||||
<refname>strcoll</refname>
|
||||
<refpurpose>Locale based string comparison</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>int <function>strcoll</function></funcdef>
|
||||
<paramdef>string <parameter>str1</parameter></paramdef>
|
||||
<paramdef>string <parameter>str2</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
Returns < 0 if <parameter>str1</parameter> is less than
|
||||
<parameter>str2</parameter>; > 0 if <parameter>str1</parameter>
|
||||
is greater than <parameter>str2</parameter>, and 0 if they are
|
||||
equal. <function>strcoll</function> uses the current locale for
|
||||
doing the comparisons. If the current locale is C or POSIX, this
|
||||
function is equivalent to <function>strcmp</function>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Note that this comparison is case sensitive, and unlike
|
||||
<function>strcmp</function> this function is not binary safe.
|
||||
</simpara>
|
||||
<note>
|
||||
<simpara>
|
||||
Added in PHP 4.0.5.
|
||||
</simpara>
|
||||
</note>
|
||||
<simpara>
|
||||
See also <function>ereg</function>, <function>strcmp</function>,
|
||||
<function>strcasecmp</function>, <function>substr</function>,
|
||||
<function>stristr</function>, <function>strncasecmp</function>,
|
||||
<function>strncmp</function>, <function>strstr</function>,
|
||||
and <function>setlocale</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.strcspn">
|
||||
<refnamediv>
|
||||
<refname>strcspn</refname>
|
||||
|
|
Loading…
Reference in a new issue