src/Sorting/SelectionSort.php
/**
     * Finds index of mininmal value in array
     *
     * @param array $array of integers
     */
Finds index of mininmal value in array
@param array $array of integers
Finds index of mininmal value in array @param array $array of integers
private function findMinIndex($array) {
        $minIndex = 0;
        $arraySize = count($array);
        for($i = 1; $i < $arraySize; $i++) {
            if($array[$i] < $array[$minIndex]) $minIndex = $i;
        }
        return $minIndex;
    }
private function findMinIndex ( $ array ) { $ minIndex = 0 ; $ arraySize = count ( $ array ) ; for ( $ i = 1 ; $ i < $ arraySize ; $ i ++ ) { if ( $ array [ $ i ] < $ array [ $ minIndex ] ) $ minIndex = $ i ; } return $ minIndex ; }
Finds index of mininmal value in array
 @param array $array of integers
Finds index of mininmal value in array @param array $array of integers