PHP - Zeilenumbrüche und <br> trimmen (preg_replace)

...komplette Frage anzeigen

1 Antwort

preg_replace('/^(\n|<br \/>|<br>)*/',"",preg_replace('/(\n|<br \/>|<br>)*$/',"",$text));

Was möchtest Du wissen?