Return from include file

前端 未结 5 1055
醉酒成梦
醉酒成梦 2020-11-27 17:41

in PHP, how would one return from an included script back to the script where it had been included from?

IE:

1 - main script 2 - application 3 - included

5条回答
  •  自闭症患者
    2020-11-27 17:51

    Hm, the PHP manual disagrees with you. return should bail you out of an included file. It won't work from within a function, of course.

提交回复
热议问题