php trim all array elements
snippet in php

php trim all array elements

user3985

$result = array_map('trim', $source_array);