php trim all array elements

48

$result = array_map('trim', $source_array);
$arr = array( " John ", "Jacob ", " Tom ", " Tim ");
$result = array_map('trim', $arr)

Comments

Submit
0 Comments