當前位置: 首頁> 函數類別大全> hex2bin

hex2bin

轉換十六進製字符串為二進製字符串
名稱:hex2bin
分類:字符串
所屬語言:php
一句話介紹:把十六進制值的字符串轉換為ASCII 字符。

實例

把十六進制值轉換為ASCII 字符:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">hex2bin</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"48656c6c6f20576f726c6421"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

親自試一試

同類函數
  • 二進制安全字符串比較 strcmp

    strcmp

    二進制安全字符串比較
  • 翻譯字符或替換子字符串-轉換指定字符 strtr

    strtr

    翻譯字符或替換子字符串-轉換指定字符
  • 將一個一維數組的值轉化為字符串 implode

    implode

    將一個一維數組的值轉化為字符串
  • 打斷字符串為指定數量的字串 wordwrap

    wordwrap

    打斷字符串為指定數量的字串
  • 轉義元字符集 quotemeta

    quotemeta

    轉義元字符集
  • strstr的別名 strchr

    strchr

    strstr的別名
  • 從字符串的開頭和結尾去除空格(或其他字符) trim

    trim

    從字符串的開頭和結尾去除空格(或其他字符
  • 將字符串轉換為數組 str_split

    str_split

    將字符串轉換為數組