codice:$test="1 4 7 10 3 19 2 17 11 5 6 14 13"; $test=explode(" ",$test); sort($test); $test=count($test) % 2 == 0 ? $test[count($test)/2-1]." ".$test[count($test)/2] : $test[floor(count($test)/2)]; echo $test;
codice:$test="1 4 7 10 3 19 2 17 11 5 6 14 13"; $test=explode(" ",$test); sort($test); $test=count($test) % 2 == 0 ? $test[count($test)/2-1]." ".$test[count($test)/2] : $test[floor(count($test)/2)]; echo $test;
think simple think ringo