2012-07-22 20:38:33 +10:00
|
|
|
<h3>lpad() function</h3>
|
|
|
|
Returns a string with supplied width padded
|
|
|
|
using the fill character.
|
|
|
|
|
|
|
|
<h4>Syntax</h4>
|
2012-07-22 15:59:26 +02:00
|
|
|
<code>lpad(string, length, fill)</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 length of the new string.
|
2012-07-22 20:38:33 +10:00
|
|
|
<br>
|
|
|
|
<code>fill</code> - is char. The character to padd the remaining space with.
|
|
|
|
|
|
|
|
<h4>Example</h4>
|
|
|
|
<!-- Show example of function.-->
|
2012-07-22 15:59:26 +02:00
|
|
|
<code>lpad('Hello', 10, 'x') → 'Helloxxxxx'</code><br>
|