Tag Archives: spaces

How to strip all spaces out of a string in php

snippets

How to strip all spaces out of a string in php You have a string stored in a PHP variable, and you want to eliminate all whitespaces or spaces from that string with PHP, not only from the beginning or the end of the string. Scenario

Solution for spaces

Solution for whitespaces

Request an article ←