fork download
  1. <?php
  2. $strText = 'Test111<br>222<br/>333\r444\n555';
  3. $strText = preg_replace('/(<br\/*>|\\\r|\\\n)/', ' ', $strText);
  4.  
  5. var_dump($strText);
Success #stdin #stdout 0s 82624KB
stdin
Standard input is empty
stdout
string(23) "Test111 222 333 444 555"