Like Perl, PHP is a scripting language. Unlike Perl, PHP is designed less as a general purposelanguage than as a language for writing Web applications.The PHP API is usedprimarily as a means of embedding…