Created
July 21, 2016 16:58
-
-
Save knorthfield/0e8f420be854ad19f8ef5dd172800d32 to your computer and use it in GitHub Desktop.
Make text from array with keys
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
$message = implode("\n", array_map(function ($v, $k) { return $k . ': ' . $v; }, $_POST, array_keys($_POST))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment