<?php $data = [' a', 'b', ' c ']; $data = array_map(function($el){ return trim ($el); }, $data); var_dump($data);
You have javascript disabled. You will not be able to edit any code.