array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.apache-get-version.php', 1 => 'apache_get_version', ), 'up' => array ( 0 => 'ref.apache.php', 1 => 'Apache Functions', ), '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' => 'en', '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 — Fetch Apache version
This function has no parameters.
Returns the Apache version on success or false
on failure.
Example #1 apache_get_version() example
<?php
$version = apache_get_version();
echo "$version\n";
?>
The above example will output something similar to:
Apache/1.3.29 (Unix) PHP/4.3.4