SyntaxFix
Write A Post
Hire A Developer
Questions
Also you can use dirname(__DIR__, $level) for access any folding level without traversing
dirname(__DIR__, $level)