Answers for "trim an array valyes in php"

PHP
5

php trim all array elements

$result = array_map('trim', $source_array);
Posted by: Guest on May-31-2020
0

trim elements of array php

$arr = array( " John ", "Jacob ", " Tom ", " Tim ");
$result = array_map('trim', $arr)
Posted by: Guest on June-13-2020

Browse Popular Code Answers by Language