Answers for "trim sopace in php"

PHP
2

how to trim white space array in php

$fruit = array('  apple ','banana   ', ' , ',     '            cranberry ');
$trimmed_array = array_map('trim', $fruit);
print_r($trimmed_array);
Posted by: Guest on April-28-2020
1

trim php

Removes whitespace from beginning and end of a string
Posted by: Guest on June-13-2021

Browse Popular Code Answers by Language