I would like to know how I can reverse what this unpack function bellow performed. I think the pack function is able to reverse what unpack performed, however I\'m not sure.
You should use call_user_func_array to revert unpack('C*', “string”), like this:
unpack('C*', “string”)
call_user_func_array('pack', array_merge(array('C*'), $array )))