To remove extra spaces from a string $string = preg_replace(‘/\s+/’, ‘ ‘, $stringWithSpaces);
PHP remove extra spaced from a string
1 Article
1
Professional Technical Solution Services for Adobe Commerce/Magento 2
To remove extra spaces from a string $string = preg_replace(‘/\s+/’, ‘ ‘, $stringWithSpaces);