What is PHP? PHP: Hypertext Preprocessor is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. What are the advantages of object oriented programming? Code Resusability: it can be acheived…