title: What's the difference between static variables and globals in php?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10266038/what-is-the-difference-between-global-and-static-variable-in-php">what is the difference between &ldquo;GLOBAL&rdquo; and &ldquo;STATIC&rdquo; variable in php</a>  </p>
  </blockquote>
  
  
  
  <p>if we create a static variable inside a function, this variable exists in further using of the function... and as far as I know global variable does the same.
  now what's the benefit of using static variables?</p>