當前位置: 首頁> 函數類別大全> 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>

親自試一試

同類函數
  • 從數字生成單字節字符串 chr

    chr

    從數字生成單字節字符串
  • rtrim的別名 chop

    chop

    rtrim的別名
  • strstr的別名 strchr

    strchr

    strstr的別名
  • 獲取字符串長度 strlen

    strlen

    獲取字符串長度
  • 計算字符串的sha1哈希值 sha1

    sha1

    計算字符串的sha1哈希值
  • 在字符串中查找一組字符的任何一個字符-返回一個以找到的字符開始的子字符串 strpbrk

    strpbrk

    在字符串中查找一組字符的任何一個字符-返
  • 將格式化後的字符串寫入到流 fprintf

    fprintf

    將格式化後的字符串寫入到流
  • 轉義元字符集 quotemeta

    quotemeta

    轉義元字符集