How do I replace tabs with spaces within variables in PHP? -
Any such thing that will close this input data: output data In: How do I do this? $ data has tabs, top positions and multiple locations. Want to replace several spaces with a single space, and remove the leading spaces.
[asdf asdf asdf asdf]
[asdf asdf asdf asdf]
$ data = trim (preg_replace ('/ \ s + / g', '' , $ Data));
Comments
Post a Comment