how to remove the space before int value in php code example
Example 1: remove empty spaces php
$string = str_replace(' ', '', $string);
Example 2: remove all spaces php
$string = "this is my string"
$string = preg_replace('/\s+/', '', $string);