Answers for "remove duplicate spaces php"

PHP
2

remove every whitespace php

$string = preg_replace('/\s+/', '', $string);
Posted by: Guest on May-29-2020
-2

php remove duplicates from string

$str = implode(',',array_unique(explode(',', $str)));
Posted by: Guest on June-24-2020

Browse Popular Code Answers by Language