I have a question that I cannot find an answer.
I'm constructing a very big array that contain hex values of a file (like $array[0]=B5
$array[1]=82
and so on until $array[1230009]
)
When I create a function to manipulate some offsets in that array and pass the $array
as reference ( function parse(&$array) { ... }
) it takes WAY longer than if I pass the array normaly ( function parse($array) { ... }
) ..
How is that possible ?
PS: Is there any faster way not to use array at all ? Just to use a $string = "B5 82 00 1E ..etc", but I need to track the Offset as i advance in reading hex values as some of this values contains lengths"