title: PHP list array names and values
body: <p>I have an array:</p>
  
  <pre><code>&lt;?php
  // My PHP version is 5.3.5
  $arr = array("num"=&gt;6,"book"=&gt;"Polyanna","name"=&gt;"Fred","age"=&gt;8)
  ?&gt;
  </code></pre>
  
  <p>How do I list the category's in the array and their values, to result something like this:
  <br/><br/>
  num: 6
  <br/>
  book: Polyanna
  <br/>
  name: Fred
  <br/>
  age: 8</p>