Answers for "remove space from array in php"

PHP
9

remove space from string php

<?php
$stripped = str_replace(' ', '', "10 1000 0000 000");
echo $stripped;
Posted by: Guest on March-12-2020
0

remove all spaces php

$string = "this is my     string"
$string = preg_replace('/\s+/', '', $string);
Posted by: Guest on October-02-2020

Code answers related to "remove space from array in php"

Browse Popular Code Answers by Language