Answers for "how to remove space from string and replace with 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

php string replace space

$journalName = preg_replace('/\s+/', '_', $journalName);
Posted by: Guest on February-05-2021

Code answers related to "how to remove space from string and replace with php"

Browse Popular Code Answers by Language