'dev', 'sha' => '', 'branch' => '', 'built' => '']; $file = ROOT . '/web/BUILD'; if (!is_readable($file)) return $info; foreach (file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $line) { if (strpos($line, '=') === false) continue; [$k, $v] = array_map('trim', explode('=', $line, 2)); if (isset($info[$k])) $info[$k] = $v; } return $info; }