SEOstats/Services/3rdparty/GTB_PageRank.php
// Turns a string of unicode characters into an array of ordinal values.
Turns a string of unicode characters into an array of ordinal values.
Turns a string of unicode characters into an array of ordinal values .
public static function strOrds($a) {
    $b = array();
    $a = mb_convert_encoding($a,"UCS-4BE","UTF-8");
    for ($i=0; $i<mb_strlen($a,"UCS-4BE"); $i++) {
        $c = unpack("N", mb_substr($a,$i,1,"UCS-4BE"));
        $b[] = $c[1]; }
    return $b;
  }
public static function strOrds ( $ a ) { $ b = array ( ) ; $ a = mb_convert_encoding ( $ a , " UCS-4BE " , " UTF-8 " ) ; for ( $ i = 0 ; $ i < mb_strlen ( $ a , " UCS-4BE " ) ; $ i ++ ) { $ c = unpack ( " N " , mb_substr ( $ a , $ i , 1 , " UCS-4BE " ) ) ; $ b [ ] = $ c [ 1 ] ; } return $ b ; }
Turns a string of unicode characters into an array of ordinal values.
Turns a string of unicode characters into an array of ordinal values .
// Now we have 4 bytes. Find their total numeric value.