// Before: Nested function calls
$result = array_filter(
array_map(
fn($x) => $x * 2,
[1, 2, 3, 4, 5]
),
fn($x) => $x > 5
);
// After: Clean pipe operator
$result = [1, 2, 3, 4, 5]
|> array_map(fn($x) => $x * 2, $$)
|> array_filter($$, fn($x) => $x > 5);
Pipe Operator (|>)
Transform your code into a readable, left-to-right flow. The pipe operator eliminates nested function calls and makes data transformations crystal clear.
Learn more →