Difference between revisions of "JString::valid"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::valid|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::valid|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function valid ($str) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 24: | Line 21: | ||
|string | |string | ||
| | | | ||
− | |UTF-8 encoded string | + | |UTF-8 encoded string |
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' boolean true if valid | |
− | boolean true if valid | + | * '''Defined''' on line 528 of libraries/joomla/utilities/string.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/utilities/string.php | ||
− | * | ||
− | |||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JString::valid source code''' on [[jplatform:utilities/string.php#cl-520|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
+ | * [[JString::valid|Other versions of JString::valid]] | ||
+ | {{SeeAlso:JString::valid}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::valid|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::valid|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 48: | Line 44: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JString]][[Category:JString::valid]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::valid]]</noinclude> |
Revision as of 21:44, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JString::valid[edit]
Description[edit]
Tests a string as to whether it's valid UTF-8 and supported by the Unicode standard Note: this function has been modified to simple return true or false.
Template:Description:JString::valid [Edit Descripton]
public static function valid ($str)
Parameter | Type | Default | Description |
---|---|---|---|
$str | string | UTF-8 encoded string |
See also[edit]
- JString::valid source code on BitBucket
- Class JString
- Subpackage Utilities
- Other versions of JString::valid
Template:SeeAlso:JString::valid [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />