Well, my question is how to return the value contained within "arsort ($ array);" in variables that can be used in other parts of the code. but the same ones being sorted as the result that appears in the "var_dump" type: $ 1 = 5, $ 2 = 10, $ 3 = 26, $ 4 = 34. I've tried it several ways, but since I'm new to php, I may be doing it wrong! Thanks in advance for your help!
$num1 = 10;
$num2 = 5;
$num3 = 34;
$num4 = 26;
$array = array($num1, $num2, $num3, $num4);
arsort($array);
var_dump($array);
//Código que aparece quando chamado o var_dump
array(4) {
[2]=> string(1) "5"
[1]=> string(2) "10"
[4]=> string(2) "26"
[3]=> string(2) "34"
}