In this PHP program we will not be generating pages, but creating the illusion of dynamic page creation! i.e., we…