
The Forbidden PHP Features Encyclopedia
Within the vast realm of PHP development, certain features have incurred the disapproval of various developers, leading to their outright exclusion from conscientious coding practices. This comprehensive encyclopedia serves as a curated catalog, shedding light on the forbidden features that have faced scrutiny and are best avoided in the pursuit of secure, maintainable, and efficient PHP code. Explore this authoritative guide to safeguard your projects and adopt best practices in the ever-evolving landscape of PHP development.
Here are things that you should not use in your code. The reasons are behind the links.
- array_merge()
- compact()
- boolean as arguments
- closing tags
- else
- empty()
- eval()
- When is eval evil in php?
- Eval Is Evil: Analyzing Performance of Web Applications Based on PHP and JavaScript by Static Analysis
- The Delicious Evils of PHP
- The Danger Of PHP Eval()
- The land where PHP uses Eval()
- What you should know about PHP security
- Massive abuse of abandonned Eval PHP wordpress plugin
- 7 schocking dangers of PHP eval()
- PHP code injections and 4 prevention tips
- Why you should always avoid PHP eval() function
- extends
- extract()
- global
- goto
- interfaces
- named parameters
- promoted properties
- runtime checks
- singleton pattern
- static methods
- string with variables
- traits
- typed with array
- type checks
- one letter variables
- variable variables
