douyanjing8287 2016-03-09 23:30
浏览 122
已采纳

php中“script”的实际含义是什么? [关闭]

I know that php is a scripting language. But some of php codes/docs, like when i tried to use magic methods, still use the "script" word. Like the __invoke() method that is called when "a script tries to call an object as a function". Here, in "script tries" - what exactly does "script" here refer to?

  • 写回答

1条回答 默认 最新

  • doulun1939 2016-03-09 23:42
    关注

    A script is a pretty vague term, generally, a script is a group of code that preforms in and around a root goal, like a script to generate a json file that has some input parameters which slightly modify the final output.

    In PHP, you might have one main script in your project, or you may have many fragments - there is not hard line that says what is a script.

    You may even call other scripts from yours; voting to close as opinion based.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?