<?php $array = [ null, "22-115", "AAAAAAAAA", "22-001", "22-221", "22-004", "22-023", "22-002", ]; $max = max(filter_var_array($array, FILTER_SANITIZE_NUMBER_INT)); echo $max; //22-221
You have javascript disabled. You will not be able to edit any code.