Hi,
to convert them back into the correct byte entry you can use pack() function. Look php manual for that, it's easy.
To combine data chunks instead of just concatenating them, you can try to just add any value, byte to byte:
$newval=ord($chunk1{1})+ord($chunk2{1});
if ($newval>128) $newval=128;
if ($newval<-128) $newval=-128;
but is not like a poliphone sound.
You can also try to mix with sound recorder of window and look to result:
start with wav1 & wav2, same length. Mix and get wav3.
Then with your script put some result on screen:
wav1 | wav2 | wav3
10 | 110 | 120
100 | -20 | 80
....
if the result is like that it's just an add and you are lucky 😃...
see you