php like remove all spaces in the start and the end code example
Example: remove all spaces php
$string = "this is my string"
$string = preg_replace('/\s+/', '', $string);
$string = "this is my string"
$string = preg_replace('/\s+/', '', $string);