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

親自試一試

同類函數
  • 返回格式化的字符串 vsprintf

    vsprintf

    返回格式化的字符串
  • 檢查字符串是否以給定的子字符串結尾 str_ends_with

    str_ends_with

    檢查字符串是否以給定的子字符串結尾
  • 計算字符串的md5哈希值 md5

    md5

    計算字符串的md5哈希值
  • 將格式化的字符串寫入流 vfprintf

    vfprintf

    將格式化的字符串寫入流
  • 計算字符串的metaphone鍵 metaphone

    metaphone

    計算字符串的metaphone鍵
  • 將字符由一種Cyrillic 字符轉換成另一種 convert_cyr_string

    convert_cyr_string

    將字符由一種Cyrillic字符轉換成另
  • 將字符串的第一個字符設為大寫 ucfirst

    ucfirst

    將字符串的第一個字符設為大寫
  • 單向字符串散列 crypt

    crypt

    單向字符串散列