I'd like to make a binary file using PHP, i want to use that binary file to store a series of integers such as
66 23 44 55 80 258
in form of binary to save some memory space since it supposed to be much smaller compared to text files. What i'm asking is how to write a binary file using PHP? I know that you can make a text file using file_put_contents() but how to write a binary one?