Jump to content

[SOLVED] Remove whitespace from content using PHP


apulmca

Recommended Posts

Hi all,

 

Actually, I was reading some html and then I use strip_tags() to remove all html tags. Then I found new line and space separated content. But, I want to remove each white space except a single space. What should I do?

 

Any solution?

 

Thanks in advance.

PHPOpenSource

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.