array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.apache-get-version.php', 1 => 'apache_get_version', ), 'up' => array ( 0 => 'ref.apache.php', 1 => 'Apache 函数', ), 'prev' => array ( 0 => 'function.apache-get-modules.php', 1 => 'apache_get_modules', ), 'next' => array ( 0 => 'function.apache-getenv.php', 1 => 'apache_getenv', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/apache/functions/apache-get-version.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8)
apache_get_version — 获得Apache版本信息
此函数没有参数。
成功时返回 Apache 版本信息 或者在失败时返回 false
.
示例 #1 apache_get_version() 示例
<?php
$version = apache_get_version();
echo "$version\n";
?>
以上示例的输出类似于:
Apache/1.3.29 (Unix) PHP/4.3.4