note 99599 deleted from function.array-walk by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Aug 2010 23:28:33 +0000 |
| Subject: | note 99599 deleted from function.array-walk by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172072@lists.php.net to get a copy of this message | ||
Note Submitter: chris at nmedia dot net
----
This stuff seems incredibly complicated.
What about using "foreach" for walking through an array and doing something with it?
(The array being $_POST in this case...)
foreach ($_POST as $key=>$value)
$body = $body . $key . " = " . $value . "\r\n";