Split sprintf() in foreach loop
<p>A simple question i can't figure out. I'm having this simple sendmail script in php.
But i need the printet array (that prints the body of the email) to be splittet up.</p>

<p>What is the simplest solution to make the outcome from the foreach loop be:<br>
1. In the first 4 posts in the array, only the value and not the key from the post is printet<br>
2. The rest of the array is printet, both keys and values.<br>
I'm currently using this:</p>

<pre><code> foreach($fields as $a =&gt; $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }
</code></pre>

<p>Can't seem to get my head around it. Any help is very welcome!
Troels</p>
