mercredi 30 novembre 2016

What is the analogue of struct.pack() in php?

I have a variable id = 1615239032

In python i do

struct.pack('<i', id)

Result is

x\x97F`

In php i do

pack('i', $id)

But result is

x▒F`

How to get the same in php?




Aucun commentaire:

Enregistrer un commentaire