<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged reference</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/reference/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/reference/order_by/date</id>
  <updated>2006-11-23T19:18:47Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<entry>
  <title>Foreach et les variables passées en référence</title>
  <link href="http://snippets.prendreuncafe.com/snippet/21"></link>
  <updated>2006-11-23T19:18:47Z</updated>
  <id>21</id>
  <summary type="html">Merci Thibs ;)

[code]
$arr = array(1, 2, 3, 4);
foreach ($arr as &amp;$value) 
{
  $value = $value * 2;
}
print_r($arr); // $arr vaut maintenant array (2, 4, 6, 8)
[/code]</summary>
</entry>
</feed>