2011-11-07 22:44:40 +10:00
|
|
|
<h3>substr() function</h3>
|
|
|
|
Return a part of a string
|
|
|
|
|
|
|
|
<p><h4>Syntax</h4>
|
|
|
|
substr(<i>string,startpos,length</i>)</p>
|
|
|
|
|
|
|
|
<p><h4>Arguments</h4>
|
|
|
|
<!-- List args for functions here-->
|
2012-07-22 15:59:26 +02:00
|
|
|
<i> string</i> → is string. The full string.<br>
|
|
|
|
<i> startpos</i> → is number. The start position to extract from.<br>
|
|
|
|
<i> length</i> → is number. The length of the string to extract.<br></p>
|
2011-11-07 22:44:40 +10:00
|
|
|
|
|
|
|
<p><h4>Example</h4>
|
|
|
|
<!-- Show example of function.-->
|
2012-07-22 15:59:26 +02:00
|
|
|
substr('HELLO WORLD',3,5) → 'LLO W'</p>
|