I would like to know how to return the largest number variable but not the value but which one is larger.
For example:
$valor_01 = 6;
$valor_02 = 4;
$valor_03 = 3;
$valor_04 = 9;
$valor_05 = 8;
$valor_06 = 5;
echo max($valor_01, $valor_02, $valor_03, $valor_04, $valor_05, $valor_06);
// OUTPUT EXIBIDO
// 9
// OUTPUT DESEJADO PARA CONTROLE
// VAR $valor_04
I'm going to use this variable for controls if
, but I need to know which is the largest variable and not the value.
If anyone knows how to put it together otherwise, thank you.