// this code is from PRogrammerRimon, Email: nwscience98@gmail.com; date: 25-04-2022 $numbers = [1, 3,44,5,66,78,33]; $max = 0; foreach ($numbers as $v) { if($max < $v) { $max = $v; } } echo $max;