remove spaces from end php code example
Example 1: remove space from string php
<?php
$stripped = str_replace(' ', '', "10 1000 0000 000");
echo $stripped;
Example 2: remove symbolsand spaces php
preg_replace('/[^A-Za-z0-9]/', "", $data)
<?php
$stripped = str_replace(' ', '', "10 1000 0000 000");
echo $stripped;
preg_replace('/[^A-Za-z0-9]/', "", $data)