hello,
I.
I have converted this: 040825444547
into this: Array ( [0] => 04 [1] => 08 [2] => 25 [3] => 44 [4] => 45 [5] => 47 )
II.
and this: 021319212542122022303142
into this: Array ( [0] => 021319212542 [1] => 122022303142 )
i need to compare the arrays. i thought of using array_diff() for that (I need to know how many person have 1 number, 2 numbers... 6 numbers and then return their ID)
but I have been combining the following functions to get I and II to have the same format without success:
implode()
chunk_split()
str_split()
strtok()
array_chunk()
dont seem to find the right combination...
can anyone tell me the logic? how to make the 2 set of datas compatible for a comparison? (II. comes from a loop)
maybe it would be easier to compare the strings and not the arrays??? (as I have the string stored in my database...)
thx 🙂