Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
What Apple fails to mention in the support doc is that if you have restrictions enabled--and you've forgotten your restrictions passcode--you can't erase your phone...and round and round and round we go. In this situation the only real way is to remember or recover your restrictions passcode.