API17:JString::strcasecmp
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
| (One intermediate revision by one user not shown) | |||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::strcasecmp|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::strcasecmp|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function strcasecmp ( |
| + | $str1 | ||
| + | $str2 | ||
| + | $locale=false | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 32: | Line 35: | ||
|mixed | |mixed | ||
|false | |false | ||
| − | |The locale used by strcoll or false to use classical comparison | + | |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. | |
| − | int < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal. | + | * '''Defined''' on line 200 of libraries/joomla/utilities/string.php |
| − | + | * '''Referenced by''' | |
| − | libraries/joomla/utilities/string.php | + | ** [[JArrayHelper::_sortObjects/11.1|JArrayHelper::_sortObjects]] |
| − | + | ||
| − | * [[JArrayHelper | + | |
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JString::strcasecmp source code''' on [[jplatform:utilities/string.php#cl-192|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
| + | * [[JString::strcasecmp|Other versions of JString::strcasecmp]] | ||
| + | {{SeeAlso:JString::strcasecmp}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::strcasecmp|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::strcasecmp|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 56: | Line 59: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JString]][[Category:JString::strcasecmp]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::strcasecmp]]</noinclude> | ||
Revision as of 21:44, 27 April 2011
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.
JString::strcasecmp
Description
UTF-8/LOCALE aware alternative to strcasecmp A case insensivite string comparison.
Description:JString::strcasecmp [Edit Descripton]
public static function strcasecmp ( $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 200 of libraries/joomla/utilities/string.php
- Referenced by
See also
-
JString::strcasecmp source code on BitBucket
-
Class JString
-
Subpackage Utilities
- Other versions of JString::strcasecmp
SeeAlso:JString::strcasecmp [Edit See Also]
User contributed notes
<CodeExamplesForm />
