#php85 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #php85, aggregated by home.social.
-
Really looking forward to be able to use #Closures in #Attributes with #php85.
<?php
$lol = #[Lol(#[Lol(#[Lol(#[Lol(static function () {
echo "Style";
})] static function () {
echo " ";
})] static function () {
echo "Passing";
})] static function () {
echo " ";
})] static function () {
echo "Continuation";
};for (;;) {
$lol();
$a = (new ReflectionFunction($lol))->getAttributes();
if ($a === []) break;
$lol = $a[0]->getArguments()[0];
}
?>