You can use parentheses in 'include / require' not because include allows it yourself, but because you can use parentheses around any string or number in PHP to group.
So, for example, "dog"
equivalent to ("dog")
, ("dog")."dog"
equivalent to "dog"."dog"
, etc.
Brackets become useful when you use complex expressions that include calculations and concatenations of strings, but in this simple case they are simply resolved and perform an unnecessary and harmless βgroupingβ of a single string value.
source share