foreach($csv as &$row){

foreach($row as &$cell){

$cell = trim($cell);

}

}

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.