Strip new lines in PHP -


i've been working phrases past couple of days , problem seem facing stripping new lines in html before printing it.

anybody have idea how remove every new lines html using php?

str_replace(array("\r", "\n"), '', $string) 

Comments

Popular posts from this blog

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -

c# - Cloning WPF controls and object hierarchies -