Answers for "how to remove spaces between characters from a string in php"

PHP
7

remove space from string php

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

remove symbolsand spaces php

preg_replace('/[^A-Za-z0-9]/', "", $data)
Posted by: Guest on December-14-2020

Code answers related to "how to remove spaces between characters from a string in php"

Browse Popular Code Answers by Language