<?php $arr = [1, "BBB", 23, -10, 'str', true, false, 50, "@", "$"]; $max = 0; Foreach ($arr as $v){ If(!@$v/1==0 && $v>$max) $max =$v; } Echo $max;
You have javascript disabled. You will not be able to edit any code.