Crypt_CHAP_MSCHAPv1::str2unicode()

Crypt_CHAP_MSCHAPv1::str2unicode() – 文字列を unicode に変換する

Synopsis

string Crypt_CHAP_MSCHAPv1::str2unicode ( string $str )

Description

このメソッドは、指定した文字列を unicode に変換します。

Parameter

  • string $str - unicode 化する文字列。

Return value

string - 指定した文字列を unicode 変換したものを返します。

Note

This function can not be called statically.

Example

Crypt_CHAP_MSCHAPv1::str2unicode() の使用

<?php
require_once 'Crypt/CHAP.php';

$cr = new Crypt_CHAP_MSCHAPv1();
echo 
bin2hex($cr->str2unicode('MyPw'));

?>