Question: what is the difference between use and require in php?
Answer: The differences are many and often subtle: use only expects a bareword, require can take a bareword or an expression. use is evaluated at compile-time, require at run-time. use implicitly calls the import method of the module being loaded, require does not.