<?php declare(strict_types=1); $processor = function($data) { return htmlentities($data) |> str_split(....), |> fn($x) => array_map(strtoupper(...), $x), |> fn($x) => array_filter($x, fn($v) => $v != 'O'); }; // or /** $processor = fn ($data) => htmlentities($data) |> str_split(...), |> fn($x) => array_map(strtoupper(...), $x), |> fn($x) => array_filter($x, fn($v) => $v != 'O'); */ $data = "Hello World!"; var_dump( $data, $processor($data), );
You have javascript disabled. You will not be able to edit any code.