DEV Community

Discussion on: PHP... yay or nay?

Collapse
 
danjconn profile image
Dan Conn

I have not used PHP since PHP 5. I have heard it has improved a lot. Even in PHP 5 I built some very simple things and some enterprise scale fully automated systems.

My main issue with PHP is also it's strength. It's very easy to get going.

It works as a positive in that you can get results quickly with little knowledge.

But this is also a negative because you needed to know a lot about the language anyway to ensure you were using it safely.

For example knowing which one to use out of mysql_escape_string, mysql_real_escape_string, or msqli_real_escape_string relied on you knowing which one was safe!

I know the offending ones were removed from PHP 7, but still, newcomers drawn to its ease of use may not have been aware of this (are there other examples still around though?).

I think if you know what you're doing with it and are sure you understand the pitfalls then great, for me personally, I'm happy to stick with Java and Python for now :)