Tag: php
Brotli vs gzip Compression
PHP 5.0+
Brotli (br) compresses 15-25% better than gzip for text content — use Brotli for supported browsers (all modern ones), gzip as fallback, both configured at the server level not PHP.
3mo ago
performance intermediate
Bytecode VMs
PHP 5.0+
1
Zend Engine (PHP), JVM (Java/Kotlin), CLR (.NET) — all compile source to platform-independent bytecode then interpret or JIT-compile to native code.
3mo ago
compiler intermediate
basename()
PHP 5.0+
1
Returns only the filename component of a path, stripping any directory prefix — a simple path traversal defence.
3mo ago
php beginner
A development practice where tests are written in business-readable language (Given/When/Then) that domain experts, developers, and testers all understand.
3mo ago
testing intermediate
bind_param()
PHP 5.1+
MySQLi method that binds PHP variables to prepared statement parameters, preventing SQL injection.
3mo ago
php intermediate
Built-in PHP Attributes
PHP 8.0+
PHP 8.0+ ships built-in attributes — #[Deprecated], #[Override], #[AllowDynamicProperties], #[SensitiveParameter] — for tooling and runtime hints.
3mo ago
php intermediate
Processing records in grouped chunks rather than one at a time, reducing per-record overhead and enabling efficient bulk database operations.
3mo ago
performance intermediate