php PHPで文字列を16進表現に変換する
PHPで文字列を16進表現に変換する方法を紹介します。
bin2hex()を使用します。
出力結果は以下のようになります。
php
php
php
php
php
php
php
php
php
php