Last active
July 7, 2023 10:41
-
-
Save michitheonlyone/7557ddb95526c7dcd3c6c6df0ac3bf23 to your computer and use it in GitHub Desktop.
PHP Anonymus Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php implode("\n", array_map(function($inst){ return "- ".$inst->getUrl()->toString(); }, $customer->getInstallations()->toArray())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read about PHP Arrow functions:
https://www.php.net/manual/de/functions.arrow.php