title: Is order of variables important in php?
body: <p>I have the following variables in my php test script :</p>
  
  <pre><code>$url="http://example.com";
  $uri="/index.php";
  $url="$url$uri";
  echo $url;
  </code></pre>
  
  <p>This returns the values of 2 variables $url and $uri, and the result i get is :</p>
  
  <pre><code>  http://example.com/index.php
  </code></pre>
  
  <p>My question is : if php processes variables from top to bottom then ,why does "echo $url" not display the value of first variable "<a href="http://example.com" rel="nofollow">http://example.com</a>" ?</p>
  
  <p>And in this situation how will I be able to echo the value of first variable? Do I need to move the first variable from top to middle? :</p>
  
  <pre><code>$uri="/index.php";
  $url="$url$uri";
  $url="http://example.com";
  echo $url;
  </code></pre>
  
  <p>Any ideas?</p>