Tag: php
FFI — Foreign Function Interface (PHP 7.4)
PHP 7.4+
PHP 7.4 FFI allows calling C functions and accessing C data structures directly from PHP — enabling Python-like ctypes integration for native libraries without writing C extensions.
3mo ago
PHP advanced
Fibers — Cooperative Concurrency (PHP 8.1)
PHP 8.1+
PHP 8.1 Fibers enable cooperative multitasking — suspending execution at yield points and resuming later — the foundation for async PHP frameworks without OS threads.
3mo ago
PHP advanced
File Permissions
PHP 4.0+
Unix permission bits (owner/group/world read-write-execute) that control which processes can read, write, or execute files — misconfigured permissions are a common PHP deployment and security issue.
3mo ago
PHP beginner
Fiber-Based Task Scheduler
PHP 8.1+
Building a cooperative multitasking scheduler with PHP Fibers — suspending and resuming tasks at I/O wait points to run multiple tasks concurrently in a single thread.
3mo ago
PHP advanced
File Descriptors & ulimit
PHP 5.0+
File descriptors are integer handles for open files, sockets, and pipes — each process has a limit (ulimit -n), and exhausting them causes 'too many open files' errors.
3mo ago
Linux intermediate
Fluent Builder Pattern
Returns $this from each setter enabling method chaining — used in query builders, test factories, and configuration objects.
3mo ago
Code Quality intermediate
Function & Method Naming Convention
PHP functions and methods use camelCase per PSR-1 — lowercase first word, each subsequent word capitalised, verb-noun pairs for actions.
3mo ago
Style beginner
Fibers provide cooperative concurrency primitives — lightweight coroutines that can pause and resume execution within a single thread.
3mo ago
PHP advanced
Fibers in Practice (Revolt / Amp)
PHP 8.1+
1
Using PHP 8.1 Fibers with event-loop libraries like Revolt or Amp to write non-blocking concurrent code in a synchronous, readable style.
3mo ago
PHP advanced
filter_var()
PHP 5.2+
PHP's built-in input validation and sanitisation function supporting email, URL, IP, int, and float validators.
3mo ago
PHP beginner
First Class Callable Syntax (PHP 8.1)
PHP 8.1+
Creates a Closure from any callable using func(...) syntax, replacing the verbose Closure::fromCallable() boilerplate.
3mo ago
PHP intermediate
First-Class Callable Syntax (PHP 8.1)
PHP 8.1+
PHP 8.1's Closure::fromCallable() shorthand — strlen(...) creates a Closure from any callable without verbose wrapper syntax.
3mo ago
PHP intermediate
Fluent Interface / Method Chaining
PHP 5.0+
An API design style where methods return $this, enabling readable chains of calls that resemble natural language.
3mo ago
PHP intermediate