Ver originalforeach ($alumno as $key => $item) { if ($item == chr(13)) { unset ($alumno[$key]); } }
Ver original$arr = array_filter($alumno, function($el) { return ord($el) != 13;});