From 613f3c1b258907c713d6c6baa7b4aef197825e13 Mon Sep 17 00:00:00 2001 From: Michael Thessel Date: Fri, 12 Apr 2013 02:46:37 +0000 Subject: [PATCH] Added array_map() snippet --- snippets/php.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/php.snippets b/snippets/php.snippets index 6ca1f58..3e5a9be 100644 --- a/snippets/php.snippets +++ b/snippets/php.snippets @@ -394,3 +394,8 @@ snippet rett return true; snippet retf return false; +snippet am + array_map(function($${1:v}) { + ${3} + return $$1; + }, $${2:foo});