Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Replacing
with newline
Re: Replacing
with newline

#72776
Rob MacKay
Participant

This will replace a br with n – n will work in a string if you use ” instead of ‘ – else you might have to concatenate it in… but give it a go anyway :D

$string = preg_replace('/
/', 'n', $string);