I'll clarify. Say I use this function to read a .gif image (which starts with "GIF" - like any valid .gif image) and I do:
Code: Select all
$data = this_secret_func_which_idk('my_image.gif'); // let's say it returns the data in hex format
echo $data{0}; // prints '47' since 'G' = 0x47P.S I'm working on something very cool and if I ever manage to finish it, a lot of PHP programmers will thank me
Edit: I see this is my 1111 post