PHP an underestimated language and why it will never die.
Most modern webpages use php as their primary source for content management as its is very easy to get things working. Since php is fairly simple, and looks similar to c and c++. Php was released in 1995 for preprocessing the HTML as the name suggests Hypertext Preprocessor. During this stage, php have been blamed and criticized for many things like sql injection, weakly typed language and more. But in every release Php has been made more stronger and stronger.
As a general update, php used mysql_connection() for database connection, this lead to huge number of sql jnjection and almost broke down many website or webpages and even companies with data breach. Later this function was upgraded to mysqli_connection() which made it more secure from vulnerabilities. Once again PDO was introduced for communicating with the database, this even made it more secure.
Early versions of php doesn’t follow the concept of OOP, but at present time PHP fully supports OOP. Currently PHP also supports static typing but it has not been upto the point. The developer world demands objects and object oriented language so writing a code in OO has been a necessity.
Why PHP will never die?
The largest CMS WordPress uses php at its extinct. Many webpages are made using WordPress,managing and updating these requires php developer. So the job opportunities for php will take a while to be empty.
Although Php lacks strong typing, php is very easy to learn and easy to scale for small scale products or ideas. Meanwhile once the product is scaled switching to an enterprise level language will be more efficient.
In short the light weight and easy scability of Php can be utilized for new startups, entrepreneurs and more.