【发布时间】:2016-01-30 01:33:17
【问题描述】:
我正在阅读位于https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_bootstrap/7 的 drupal_bootstrap 代码,以尝试了解如何引导 drupal 代码。我有其他语言的经验,但没有 php。下面这行代码让我很困惑,因为 $phases 是一个数组,而其他的都是 int。数组和int比较是什么意思?
while ($phases && $phase > $stored_phase && $final_phase > $stored_phase) {
$current_phase = array_shift($phases);
谢谢!
【问题讨论】:
-
另外,我有一个非常基本的问题..引导drupal代码是什么意思?
-
欢迎来到 Stack Overflow!如果您还有其他问题,请打开另一个问题。
标签: php arrays drupal drupal-7