So i was searching it online but i couldn't find a basic explanation. I am new with php. So i am going to say what i understand out of this code.
foreach is that it's using multiple $name and the AS makes the first variable the same as the second $key but then comes => which i don't understand.
if $min higher than $val , $min = $val and the one under is the opposite.
What is => exactly doing?
foreach($arr as $key => $val){
if($min > $val){
$min = $val;
}
if($max < $val){
$max = $val;
}
}