title: loop for part of a multidimensional array
body: <p>I've done a multistep form in PHP storing the data in a multidimensional array (I've created an array inside <code>$_SESSION</code> array and named it <code>$_SESSION['inserimento'])</code></p>
  
  <p>then i have <code>$_SESSION['inserimento']['name'],$_SESSION['inserimento']['city']</code>...</p>
  
  <p>I would like to apply the <code>strtolower()</code> function to all the values before adding them to mysql</p>
  
  <p>I've tried this code but it doesn't work</p>
  
  <pre><code>foreach ($_SESSION['inserimento'] as $k=&gt;$v){
      $v=strtolower($v);
  }
  </code></pre>
  
  <p>I think I'm misunderstanding how to make a loop on multidimensional array.</p>