I want to learn to parse certain files (such as MPQ) and I need to learn binary and how to handle it with PHP. Could you guys please kindly suggest me resources for learning such things ( books, anything)?

**Edit:** I have tried unpacking the file before, but all the numbers just looks like gibberish to me and I do not know how to comprehend it and move forward.