【问题标题】:What is ENDIF doing in templates? [closed]ENDIF 在模板中做什么? [关闭]
【发布时间】:2023-03-13 22:21:01
【问题描述】:

ENDIF 在模板中做了什么?

【问题讨论】:

  • 每个if 都有一个endif
  • 如果您无法自行解决,请不要编码

标签: php templates


【解决方案1】:
if(condition):

// some scripts here

endif;

if(condition)
{

    // some scripts here

}

http://php.net/manual/en/control-structures.alternative-syntax.php

【讨论】:

  • 我知道有手册;我没有时间。我只需要 Inside 还是 For Each Div?
  • @user1981528:没办法回答这个问题。你基本上是在说“我有一个工具。我需要它来构建我的任何东西吗?”。
  • @user1981528 我可以向你保证,输入谷歌关键字php if endif 比写这个问题要快得多。
  • @user1981528 I have no time for it 所以我们应该为你腾出时间?
  • 你真的不知道if是做什么的吗?
猜你喜欢
  • 2020-05-23
  • 1970-01-01
  • 2019-04-17
  • 1970-01-01
  • 2014-10-04
  • 1970-01-01
  • 2021-08-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多