dirname(__FILE__) vs __DIR__, which is faster?
- Read more about dirname(__FILE__) vs __DIR__, which is faster?
- Log in to post comments
If you're developing PHP software today but studied PHP based on old-ish manuals or manuals written by people who did, you might find a mix of calls to dirname(__FILE__) and __DIR__ and wonder what the difference is...