Does function definition order matter?

前端 未结 7 1788
滥情空心
滥情空心 2021-01-17 07:33

In the script below, does the order in which items are declared matter?

For example, if the add_action points to a function that has not yet been defined? Does it ma

相关标签:
7条回答
  • 2021-01-17 08:18

    No.
    It is not C :P...
    As you can see here , the whole file is first being parsed and then executed.
    If a function that doesn't exist is being called, php will throw an error.

    Fatal error: Call to undefined function

    0 讨论(0)
提交回复
热议问题