Question Editor |
//reformats a string with breaks if the length exceeds $max_line_length //useful for placing line breaks on a string where html won't autowrap //(e.g. say html sees this as a long string(quotes included in string): "one,"two","three","four" //this will not autowrap in an html table since it sees it as a long string with no breaks (spaces) // $string = the string to reformat, $separator = valid character at which to separate by lines, // $max_line_length = max number of chars in a line. $break_str = string to place for use with line breaks (e.g.