>>53
配列?こういうこと?

$str[0] = "\r";
$str[1] = "\n";
$str[2] = "\r\n";

$mes = str_replace ($str, "<br>", $mes);