It depends on the phalanges in question. The distal phalanges in the four fingers and toes articulate with the intermediate phalanges. The intermediate phalanges articulate with the proximal phalanges and the proximal phalanges articulate with the metacarpals of the hand and the metatarsals of the toes. The same is true for the thumb and big toe except that neither one has an intermediate phalanges.