I feel stupid asking this question, but does anyone know when the file is read into a variable - at the time when it is assigned to it or later when it is called through echo, print, etc. I am not talking about functions here, because then the assignment will take place during the function execution.
Here's an example:
Does PHP access the inc file during this first assignment or later? The reason I am asking is that I want to create code that would first read from a file in this way, then write to it, and I need access to the old file contents even after the file was modified.
Thanks in advance,