I've tried searching around for information on how PHP parses and renders itself.
Basically, I'm writing a bunch of scripts that rely on a core file. The core itself is quite large (around 20k), but the scripts that reference it don't often utilise the entire contents of the core.
Inside the core are functions that are never called inside the core, and a bunch of constants and globals that I call from the referencing scripts.
So I guess in a nutshell, I want to know if when I call require, does PHP read the entire file? Or does it only read the bits it needs? I realise that last sentence makes me sound like I have trouble putting legos together, but I would just like to know how PHP goes about it duty 🙂