Skip to content

Instantly share code, notes, and snippets.

@michitheonlyone
Last active July 7, 2023 10:41
Show Gist options
  • Save michitheonlyone/7557ddb95526c7dcd3c6c6df0ac3bf23 to your computer and use it in GitHub Desktop.
Save michitheonlyone/7557ddb95526c7dcd3c6c6df0ac3bf23 to your computer and use it in GitHub Desktop.
PHP Anonymus Function
<?php implode("\n", array_map(function($inst){ return "- ".$inst->getUrl()->toString(); }, $customer->getInstallations()->toArray()))
@michitheonlyone
Copy link
Author

Read about PHP Arrow functions:
https://www.php.net/manual/de/functions.arrow.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment