private function _asciiSum($string)
    {
        $sum       = 0;
        $chars     = str_split($string);
        $charCount = count($chars);
        for ($i = 0; $i < $charCount; ++$i) {
            $sum += ord($chars[$i]);
        }

        // return calculated sum
        return $sum;
    }
private function _asciiSum($string)
    {
        $sum       = 0;
        $chars     = str_split($string);
        $charCount = count($chars);
        for ($i = 0; $i < $charCount; ++$i) {
            $sum += ord($chars[$i]);
        }

        // return calculated sum
        return $sum;
    }
private function _asciiSum ( $ string ) { $ sum = 0 ; $ chars = str_split ( $ string ) ; $ charCount = count ( $ chars ) ; for ( $ i = 0 ; $ i < $ charCount ; ++ $ i ) { $ sum += ord ( $ chars [ $ i ] ) ; } // return calculated sum return $ sum ; }
calculates the sum of the ascii representation of a string.

This method is intend to calculate the sum of the ascii representation of a string.

@param string $string The string to sum the ascii

@author Benjamin Carl <opensource@clickalicious.de>

@return int Sum of Ascii representation
calculates the sum of the ascii representation of a string .