printf issue with array
<p>So i have a problem with taking an array and looping through the values and outputing with a foreach statement.</p>

<p><strong>code</strong></p>

<pre><code>&lt;?php
$example = array("test" =&gt; "hello world" );

foreach ($example as $arr) {
  printf("&lt;p&gt;what do you have to say for yourself?&lt;/p&gt;&lt;p&gt;%s!&lt;/p&gt;",$arr["test"]);
}

?&gt;
</code></pre>

<p><strong>hoping to get the output:</strong></p>

<p>what do you have to say for yourself?</p>

<p>hello world!</p>

<p><strong>Instead get</strong></p>

<p>what do you have to say for yourself?</p>

<p>h!</p>

<p>why just the single character?</p>

<p>Any help would be great</p>

<p>thanks</p>
