pack() in php. Illegal hex digit warning

前端 未结 7 1688
梦如初夏
梦如初夏 2021-01-12 02:34

i am having some problems using pack() in php

$currencypair = \"EUR/USD\";
$buy_sell = \"buy\";
$alert_device_token =array(\"a\",\"a\",\"b\");
$message = \"         


        
相关标签:
7条回答
  • 2021-01-12 03:03

    You must change

    pack('H*', $someString)
    

    To

    strtr(rtrim(base64_encode(pack('H*', sprintf('%u', CRC32($someString))))
    
    0 讨论(0)
提交回复
热议问题