New course! Every coder should learn Generative AI!
Try a free lesson+ 2
The point is PHP is a programming language, whereas ASP.NET does not belong to the category of programming languages. C# or VB.Net are the languages usually used with ASP.Net.
That makes it clear! You cannot strike a comparison between PHP and ASP.NET as the latter is a web framework while the former is a programming language.
for more info refer this link
https://www.quora.com/Which-is-better-PHP-or-ASP-NET-and-why