I read the following text out of a Mssql database:
- Leitwert und Korrosionsschutz des Kühlwassers überprüfen: 111- Umrichterkühlkreis < 200µS/cm 111- Ofenkühlkreis und IGBT-Anlagen: < 400µS/cm 111- Konzentration des Korrosionsschutzes
I want to replace "111" with a new line ("<br>"
) using this replace function:
str_replace("111", "<br>", $text);
or this one
array_replace("111", "<br>", $text);
Both lines work when I declare the text just in the code, but if I read it from the database it doesn't work. I use utf8_encode
after reading this text from db.
I think the problem is the datatype which is defined as "text" in the table of the database.