pack() in php. Illegal hex digit warning

前端 未结 7 1690
梦如初夏
梦如初夏 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:55

    In this case, $alert_device is an array.

    For packing it needs a value.

    Use pack('H*', str_replace(' ', '', $alert_device[0])) instead.

提交回复
热议问题