Is php's 'include' a function or a statement?

前端 未结 9 2106
梦谈多话
梦谈多话 2020-11-29 10:57

There are plenty of examples of both on the web. The php manual says \"The include() statement [...]\", which seems contradictory - if it\'s a statement shouldn\'t it not ha

9条回答
  •  不知归路
    2020-11-29 11:53

    include, require, echo, print, and a handful of other keywords are language constructs on their own, rather than function calls, and do not need parentheses. However, some people like to pretend they're function calls and use parentheses anyway. They are identical.

提交回复
热议问题