tag:blogger.com,1999:blog-2227766549193082651.post7527418720962483160..comments2023-06-02T19:33:05.588+07:00Comments on jaw Collection: PHP br2nl functionJawaad Alkaffhttp://www.blogger.com/profile/14957119931235646302noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2227766549193082651.post-2152034495277765642011-08-20T20:16:02.941+07:002011-08-20T20:16:02.941+07:00If you write it out as
function br2nl($text) {
re...If you write it out as<br />function br2nl($text) {<br /> return preg_replace('//i', '<br />', $text);<br />}<br /><br />e.g. leave put a new line in your code between the two '' then it works as you're expecting.<br />Thanks a lotAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2227766549193082651.post-77288200587811788132011-04-29T21:40:59.817+07:002011-04-29T21:40:59.817+07:00i thought this was supposed to be line break to ne...i thought this was supposed to be line break to new line, not line break to nothing.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2227766549193082651.post-29443249212524022502010-03-21T21:58:45.286+07:002010-03-21T21:58:45.286+07:00Really good!Really good!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2227766549193082651.post-64191488774396770582009-08-05T07:58:53.349+07:002009-08-05T07:58:53.349+07:00Simple and useful!Simple and useful!Jonhttp://www.jonziebell.comnoreply@blogger.comtag:blogger.com,1999:blog-2227766549193082651.post-7992595632497261352009-07-27T18:38:31.809+07:002009-07-27T18:38:31.809+07:00Thanks!
Really helps me a lot :PThanks!<br />Really helps me a lot :Pblendazhttp://blendaz.000space.comnoreply@blogger.com