I have seen a code that converts integer into byte array. Below is the code on How to convert integer to byte array in php 3 (How to conver
Since L is four bytes long, you know the number of elements of the array. Therefore you can simply perform the operation is reverse:
$ar = [64,226,1,0]; $i = unpack("L",pack("C*",$ar[3],$ar[2],$ar[1],$ar[0]));