pack() in php. Illegal hex digit warning

前端 未结 7 1686
梦如初夏
梦如初夏 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 02:50

    Use strtr(rtrim(base64_encode(pack('H*', sprintf('%u', $algo($data)))), '='), '+/', '-_') insted of using pack('H*', $value).

提交回复
热议问题