← CodeClarityLab Home
Browse by Category
+ added · updated 7d
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Diagram: Session Fixation Session Fixation PHP 5.0+
An attacker forces a victim to use a known session ID, then hijacks their session after they authenticate.
CWE-384 OWASP A7:2021
2mo ago security intermediate 8.0
Single Responsibility Principle PHP 5.0+
A class or function should have one reason to change — doing one thing and doing it well.
2mo ago general beginner
SOLID Principles (Overview) PHP 5.0+
Five object-oriented design principles — SRP, OCP, LSP, ISP, DIP — that together guide towards maintainable, extensible code.
2mo ago quality intermediate
Diagram: SQL Injection SQL Injection PHP 5.1+
Unsanitised user input inserted directly into a SQL query, letting attackers read, modify, or delete database data.
CWE-89 OWASP A3:2021
2mo ago security intermediate 9.8
Asymmetric Visibility (PHP 8.4) PHP 8.4+
PHP 8.4 asymmetric visibility lets you set different access levels for reading and writing a property — public(get) protected(set) — without getter/setter methods.
php intermediate
Lazy Objects (PHP 8.4) PHP 8.4+
PHP 8.4 native lazy objects defer object initialisation until first property access — previously requiring proxy libraries, now built into the engine via ReflectionClass.
php advanced
Property Hooks (PHP 8.4) PHP 8.4+
PHP 8.4 property hooks attach get/set logic directly to a property declaration — eliminating getter/setter method boilerplate for common validation and transformation patterns.
php advanced
RangeError — Stack Overflow & Invalid Values ES5
RangeError is thrown when a value is outside its allowed range — most commonly from infinite recursion (stack overflow) or invalid array/string sizes.
javascript intermediate
✓ schema.org compliant