When I echo two words then I want to give a single space, php can’t get space. How can I solve this problem?
<?php
$string = “we shall overcome “; $removeSpace = trim(preg_replace(‘/ss+/’, ‘ ‘, str_replace(“n”, ” “, $string))); echo $removeSpace;
?>
I think, this code helps you. bye friend 🙂
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in