manage category address book code in PHP