Use substr to extract the checksum

To avoid create a temporary array (which stay in memory), and string manipulation is a bit faster than explode/array_pop/implode array.

BTW, why not use json or PHP serializer instead home made pattern?