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:
$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.