Php manual br2nl


















Users can't be trusted to write good code, we know that, and mixing case isn't too uncommon. If you write code that is to run in browser AND on the shell, this function could be useful. I test empirically this function nl2br and nl2br2 create by ngkongs at gmail dot com. Both work nice with different ASCII chars for linebreak, but the function nl2br2 is faster than nl2br. Which is optional, depending on your use case. Starting from PHP 4. Seeing all these suggestions on a br2nl function, I can also see that neither would work with a sloppy written html line break..

Users can't be trusted to write good code, we know that, and mixing case isn't too uncommon. If you write code that is to run in browser AND on the shell, this function could be useful. I test empirically this function nl2br and nl2br2 create by ngkongs at gmail dot com.

Both work nice with different ASCII chars for linebreak, but the function nl2br2 is faster than nl2br. Starting from PHP 4. Seeing all these suggestions on a br2nl function, I can also see that neither would work with a sloppy written html line break.. Users can't be trusted to write good code, we know that, and mixing case isn't too uncommon. If you write code that is to run in browser AND on the shell, this function could be useful. I test empirically this function nl2br and nl2br2 create by ngkongs at gmail dot com.



0コメント

  • 1000 / 1000