Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个循环,它调用一个生成文档、一堆变量和几封电子邮件的函数。该循环平均将经历大约 10-20 次迭代,我想知道它是同时调用函数还是等到函数完成后再再次调用它。
foreach ($campaign as $key=>$val){ produce_docs($val['id']); } function produce_docs(campaign_id){ //Big function //does not return anything }
它会等到函数完成后再调用它。