QuestionsHow to trim the whitespace from an array in PHP
mmkevinsmith0610 asked 3 months ago

foreach($csv as &$row){

foreach($row as &$cell){

$cell = trim($cell);

}

}

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.