Crypt_CHAP_MSCHAPv1::str2unicode()
Crypt_CHAP_MSCHAPv1::str2unicode() -- Converts a string to unicode.
概要
string Crypt_CHAP_MSCHAPv1::str2unicode (string $str)
説明
This method generates converts the given string to unicode.
返り値
string - a String containing unicode representation of the given string
注意
この関数は、スタティックにコールする
ことはできません。
例
例 35-1Using Crypt_CHAP_MSCHAPv1::str2unicode()
<?php
require_once 'Crypt/CHAP.php';
$cr = new Crypt_CHAP_MSCHAPv1();
echo bin2hex($cr->str2unicode('MyPw'));
?>
|
|