PHP: How are comments skipped?
问题 Well if I comment something it's skipped in all languages, but how are they skipped and what is readed? Example: // This is commented out Now does PHP reads the whole comment to go to next lines or just reads the // ? 回答1: Your question doesn't make sense. Having read the '//', it then has to keep reading to the newline to find it. There's no choice about this. There is no other way to find the newline. Conceptually, compiling has several phases that are logically prior to parsing: Scanning.