我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如果声明继续在外面包括?

I've got an index.php page, and a lot of includes on it. How can I make an if statement from the first include continue to the last include, without getting an Parse error: syntax error, unexpected $end error.

Thanks!

You can't. You can however put the things inside the if statement in its own file and include it inside the if statement like this:

if(...) {
   include 'file1.php';
}

近期文章

  • 为什么我都把manger这个数据表删了,并且也把manger.schema.json删了,但还会报错
  • TypeError: new_row() missing 1 required positional argument: 'self'
  • quicker里面公式转换器总出错
  • Ansys APDL命令流 DO循环只循环一次
  • 关于#c++#的问题:打印出数组x内随机内容
  • Python如何将xlsx导入列表
  • 如何用openpyxl获取excel有效最大行列数
  • 使用PHP / PECL OAuth扩展通过POST传递参数
  • ubuntu 安装 esp32 环境失败
  • python转好多个excel为csv
  • vue-admin 页面出错后跳转其他页面白屏,内置生命周期也未运行(history模式)
  • 在北京Java程序员怎样才能拿到月薪20k呢?
  • 请问下Jmeter和java发接口这个错是啥原因呢?
  • 鸿蒙系统如何脱离电脑使用ADB指令
  • 按相关性排序图像的算法
  • MySQL修改SQL语句优化性能
  • Unity位置计算问题
  • Java后端在工作时,经常需要用到的技术有哪些?
  • 怎么把自己做的毕设项目在其他电脑上展示?
  • polygon gas limit问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华