Search results for 'new line'. 1 post(s) found.
- 2009/11/27 PHP function converts new line to BR tag
In case of displaying normal text having CR+LF character string on web browser, you may need to change it to <BR> tag.
PHP provides speedy converting function for supporting that. Following function is very useful.
Proto-type:
function nl2br( <source string> )
function nl2br( <source string> )
As you can expect by function name, it converts new line character set to <BR> tag.
Another posts included in "PHP"
| PHP socket programming to get content with post method (0) | 2009/10/19 |
| How to remove HTML tags in text string? (0) | 2009/08/05 |
| How to delete file on certain path ? (0) | 2008/10/01 |
| ASCII Artwork Generator from image file (0) | 2008/09/23 |
| How to limit by Timeout when opening URL ? (0) | 2008/04/14 |

Prev

Rss Feed