Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly


strip spaces from php string
by admin
 at 2018-01-07 01:12:00.

There are two ways to remove spaces from a string:
$string = str_replace(' ', '', $string);

$string = preg_replace('/\s+/', '', $string);