Answers for "how to remove space in a string in php"

PHP
0

remove all spaces php

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

how to trim string in laravel

{{ \Illuminate\Support\Str::limit($productVal, 20, $end='...') }}
Posted by: Guest on July-01-2020

Code answers related to "how to remove space in a string in php"

Browse Popular Code Answers by Language