2012-07-22 20:38:33 +10:00
|
|
|
<h3>left() function</h3>
|
|
|
|
Returns a substring that contains the <i>n</i> leftmost characters of the string.
|
|
|
|
|
|
|
|
<h4>Syntax</h4>
|
2012-07-22 15:59:26 +02:00
|
|
|
<code>left(string, length)</code><br>
|
2012-07-22 20:38:33 +10:00
|
|
|
|
|
|
|
<h4>Arguments</h4>
|
|
|
|
<code>string</code> - is string. The string.
|
|
|
|
<br>
|
2012-07-22 15:59:26 +02:00
|
|
|
<code>length</code> - is int. The number of characters from the left to return.
|
2012-07-22 20:38:33 +10:00
|
|
|
|
|
|
|
<h4>Example</h4>
|
|
|
|
<!-- Show example of function.-->
|
2012-07-22 15:59:26 +02:00
|
|
|
<code>left('Hello World',5) → 'Hello'</code><br>
|
2012-07-22 20:38:33 +10:00
|
|
|
|