API17

Difference between revisions of "JString::substr replace"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JString::substr_replace|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JString::substr_replace|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JString::substr_replace ($str, $repl, $start, $length=NULL)
+
public static function substr_replace (
 +
        $str
 +
        $repl
 +
        $start
 +
        $length=NULL
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 41:
 
|int
 
|int
 
|NULL
 
|NULL
|length (optional)  
+
|length (optional)
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 375 of libraries/joomla/utilities/string.php
===Defined in===
 
libraries/joomla/utilities/string.php (line 387)
 
* see source code in [[jplatform:utilities/string.php#cl-387|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JString::substr_replace source code''' on [[jplatform:utilities/string.php#cl-367|BitBucket]]
 +
* {{JVer|11.1}} Class [[JString/11.1|JString]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JString::substr_replace|Other versions of JString::substr_replace]]
 +
{{SeeAlso:JString::substr_replace}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JString::substr_replace|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JString::substr_replace|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JString/11.1|JString]]
+
===User contributed notes===
* [[JString::substr_replace|Other versions of this method]]
 
{{SeeAlso:JString::substr_replace}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 61: Line 63:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JString]][[Category:JString::substr_replace]]</noinclude>
 
<noinclude>[[Category:JString]][[Category:JString::substr_replace]]</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.

Joomla 11.1 JString::substr_replace[edit]

Description[edit]

UTF-8 aware substr_replace Replace text within a portion of a string.

Template:Description:JString::substr replace [Edit Descripton]

public static function substr_replace (
        $str
        $repl
        $start
        $length=NULL
)
Parameter Type Default Description
$str string the haystack
$repl string the replacement string
$start int start
$length int NULL length (optional)
  • Returns
  • Defined on line 375 of libraries/joomla/utilities/string.php

See also[edit]

Template:SeeAlso:JString::substr replace [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />