Both languages have their own advantages and disadvantages.
PHP is an interpreted language though it is strong to develop any type of page you need to develop.
ASP.net is a server-side web application Framework that used for creating websites, web applications and web services. But for the security reason, ASP.net is better than PHP.
In my opinion, I must say ASP.NET is better career choice as compared to PHP
Solar PCU