Actions

API17

Difference between revisions of "JString::str split"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JString::str_split|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JString::str_split|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JString::str_split ($str, $split_len=1)
+
public static function str_split (
 +
        $str
 +
        $split_len=1
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 29:
 
|int
 
|int
 
|1
 
|1
|number to characters to split string by  
+
|number to characters to split string by
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array
array
+
* '''Defined''' on line 181 of libraries/joomla/utilities/string.php
===Defined in===
+
libraries/joomla/utilities/string.php (line 188)
+
* see source code in [[jplatform:utilities/string.php#cl-188|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JString::str_split source code''' on [[jplatform:utilities/string.php#cl-173|BitBucket]]
 +
* {{JVer|11.1}} Class [[JString/11.1|JString]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JString::str_split|Other versions of JString::str_split]]
 +
{{SeeAlso:JString::str_split}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JString::str_split|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JString::str_split|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JString/11.1|JString]]
+
===User contributed notes===
* [[JString::str_split|Other versions of this method]]
+
{{SeeAlso:JString::str_split}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 51: Line 51:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JString]][[Category:JString::str_split]]</noinclude>
 
<noinclude>[[Category:JString]][[Category:JString::str_split]]</noinclude>

Revision as of 21:43, 27 April 2011

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::str_split

Description

UTF-8 aware alternative to str_split Convert a string to an array.

Description:JString::str split [Edit Descripton]

public static function str_split (
        $str
        $split_len=1
)
Parameter Type Default Description
$str string UTF-8 encoded
$split_len int 1 number to characters to split string by
  • Returns array
  • Defined on line 181 of libraries/joomla/utilities/string.php

See also

SeeAlso:JString::str split [Edit See Also]

User contributed notes

<CodeExamplesForm />