PHP CODEfunction br2nl($text) { return preg_replace('//i', '', $text);}
Thanks!Really helps me a lot :P
Simple and useful!
Really good!
i thought this was supposed to be line break to new line, not line break to nothing.
If you write it out asfunction br2nl($text) { return preg_replace('//i', '', $text);}e.g. leave put a new line in your code between the two '' then it works as you're expecting.Thanks a lot
Post a Comment
5 comments:
Thanks!
Really helps me a lot :P
Simple and useful!
Really good!
i thought this was supposed to be line break to new line, not line break to nothing.
If you write it out as
function br2nl($text) {
return preg_replace('//i', '
', $text);
}
e.g. leave put a new line in your code between the two '' then it works as you're expecting.
Thanks a lot
Post a Comment