phpbar.de logo

Mailinglisten-Archive

[php] nl2br() umgekehrt?

[php] nl2br() umgekehrt?

Alexander Wagner wagner_(at)_globalpark.de
Sun, 21 Jan 2001 08:16:49 +0100


Mike Greubel wrote:
> function br2nl($str) {
>     return str_replace("<BR>","\n",$str);
> }

Da nl2br() etwas anders funktioniert, muss es so heissen:

function br2nl($str) {
    return str_replace("<BR>\n","\n",$str);
}

Gesundheit
Wagner

-- 
Sanity is calming, but madness is more interesting.


php::bar PHP Wiki   -   Listenarchive