Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[PHP] New Pipe Operator in PHP 8.5 [|>]

Name: Anonymous 2025-05-26 13:03

Now you can do this:

$result = "Hello World"
|> 'htmlentities'
|> 'str_split'
|> fn($x) => array_map('strtoupper', $x)
|> fn($x) => array_filter($x, fn($v) => $v != 'O');


Instead of this:

$result = array_filter(
array_map('strtoupper',
str_split(htmlentities("Hello World"))
), fn($v) => $v != 'O'
);

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List