word_wrap($str[, $charlim = 76])
Parameters: |
|
---|---|
Returns: |
Word-wrapped string |
Return type: |
string |
Wraps text at the specified character count while maintaining complete words.
Example:
1 2 3 4 5 6 7 8 | $string = "Here is a simple string of text that will help us demonstrate this function." ; echo word_wrap( $string , 25); // Would produce: // Here is a simple string // of text that will help us // demonstrate this // function. |
Please login to continue.