error_reporting (0); $a= $_POST ['val_1']; $b= $_POST ['val_2']; $c= $_POST ['val_3']; $d= $_POST ['val_4']; $e= $_POST ['val_5']; if(isset($_POST['clear'])) { $a=""; $b=""; $c=""; $d=""; $e=""; $display_original=""; $process_results=""; } ?> Counting Sort in PHP Counting Sort in PHP










0) { $data[$z] = $i; $z++; } } $count = null; } if(isset($_POST['bubble'])) { $arr = array($a,$b,$c,$d,$e); $orig = implode(",", $arr); counting_sort($arr,5,-5000,5000); $final_sort = implode(",", $arr); $display_original = "Original Values : " .$orig."

"; $process_results = "Sorted Values : " .$final_sort."
"; echo $display_original; echo $process_results; } echo "Muhammad Hafizullah
" ; echo "1910128425160
"; echo "Teknik Industri "; ?>