making a linked-list in PHP