title: Global Variables vs. Local Variables
body: <p>Okay, I'm not sure I'm understanding this concept properly (I'm learning PHP). If I understand correctly:
  Global variables can be referenced anywhere in the same document, or in documents linked with "include." Local variables can only be referenced in the function where they are.</p>
  
  <p>Okay, if I understand that correctly (which is half of the reason I'm posting, to make sure I have that right) is there really a need for local variables? I mean, if each user defined their own variables and they needed to all be saved, I can see it being useful... kind of? But, using a database for that would be much simpler I'd think. What situations would I want to use local variables in?</p>