17 lines
824 B
Plaintext
Raw Normal View History

<h3>wordwrap() function</h3>
Returns a string wrapped to a maximum/minimum number of characters.
<p><h4>Syntax</h4>
wordwrap(<i>string,wrap_length[,delimiter_string]</i>)</p>
<p><h4>Arguments</h4>
<!-- List args for functions here-->
<i> string</i> &rarr; is string. The string to be wrapped.<br>
<i> wrap_length</i> &rarr; is number. If positive, the number represents the ideal maximum number of characters to wrap; if negative, the number represents the minimum number of characters to wrap.<br>
<i> delimiter_string</i> &rarr; is string. The delimiter string to wrap to a new line (<u>optional</u>).<br></p>
<p><h4>Example</h4>
<!-- Show example of function.-->
wordwrap('UNIVERSITY OF QGIS',13) &rarr; 'UNIVERSITY OF\nQGIS'<br>
wordwrap('UNIVERSITY OF QGIS',-3) &rarr; 'UNIVERSITY\nOF QGIS'</p>