<?php $str1 = 'foobar'; $str2 = 'stack'; // your code $len = strlen($str1); $str = pack('V', $len) . $str1 . $str2; // unpacking $length_of_packed_string = strlen($str) - strlen($str1 . $str2); $unpacked = unpack('V', substr($str, 0, $length_of_packed_string)); print_r($unpacked);
You have javascript disabled. You will not be able to edit any code.