title: get all values from php associative array
body: <p>I have an array <code>$ages = array("Peter"=&gt;32, "Quagmire"=&gt;30, "Joe"=&gt;34);</code>. How can i get (echo) all names and corresponding ages in a single instance (like <code>foreach $value as $value</code>)?? The array may have more data than shown here.</p>