title: Double dollar sign php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br/>
    <a href="https://stackoverflow.com/questions/2715654/what-does-mean-in-php">What does $$ (dollar dollar or double dollar) mean in PHP?</a></p>
  </blockquote>
  
  <p>I found myself using this kind of code in one of my controllers:</p>
  
  <pre><code>foreach(get_object_vars($this-&gt;view) as $property=&gt;$value){
     $$property = $value;
  }
  </code></pre>
  
  <p>Is there any problem with using the $$property to "localize" view properties into simple $variables?</p>
  
  <p>edit:</p>
  
  <p>I should add that this code is run in the scope of a view-specific method, so there's no problem of overriding local variables. This is to divert some of you guys from pointing out the problem of overriding local variables.</p>