automica
5 years ago
the issue which Jeffrey came across at 11:20
$threads[$ids[2]]
was because he was after the 3rd thread, with index 2.
$thread[2] at this point has the same id as $ids[2].
As its the 3rd thread, it would have id = 3;
This would make $threads[$ids[2]] equivalent to $threads[3], but as we don't have $threads[3] (index starts at 0) then it fails with illegal offset error.
