Actions

API17

Difference between revisions of "JString::strcmp"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (moving preparation)
 
(2 intermediate revisions by one user not shown)
Line 41: Line 41:
 
* '''Defined''' on line 247 of libraries/joomla/utilities/string.php
 
* '''Defined''' on line 247 of libraries/joomla/utilities/string.php
 
* '''Referenced by'''
 
* '''Referenced by'''
** [[JArrayHelper::_sortObjects/11.1|JArrayHelper::_sortObjects]]
+
** [[API17:JArrayHelper::_sortObjects|JArrayHelper::_sortObjects]]
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JString::strcmp source code''' on [[jplatform:utilities/string.php#cl-239|BitBucket]]
 
* {{JVer|11.1}} '''JString::strcmp source code''' on [[jplatform:utilities/string.php#cl-239|BitBucket]]
* {{JVer|11.1}} Class [[JString/11.1|JString]]
+
* {{JVer|11.1}} Class [[API17:JString|JString]]
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
* [[JString::strcmp|Other versions of JString::strcmp]]
+
* [[API17:JString::strcmp|Other versions of JString::strcmp]]
 
{{SeeAlso:JString::strcmp}}
 
{{SeeAlso:JString::strcmp}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 62: Line 62:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JString]][[Category:JString::strcmp]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:36, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JString::strcmp

Description

UTF-8/LOCALE aware alternative to strcmp A case sensitive string comparison.

Description:JString::strcmp [Edit Descripton]

public static function strcmp (
        $str1
        $str2
        $locale=false
)
Parameter Type Default Description
$str1 string string 1 to compare
$str2 string string 2 to compare
$locale mixed false The locale used by strcoll or false to use classical comparison
  • Returns int < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.
  • Defined on line 247 of libraries/joomla/utilities/string.php
  • Referenced by

See also

SeeAlso:JString::strcmp [Edit See Also]

User contributed notes

<CodeExamplesForm />