All help topics · Link to this topic
Showing help on 'server_version()'
Syntax: server_version ([<detail>]) => STR | LIST | valueWith no arguments, returns the server version string.
With an argument that is not a string, or with an empty string, returns the full server version structure. This list includes version fields such as major, minor, release, ext, string, and os, plus grouped feature, option, make, and source information when available.
With a non-empty string argument, returns the named element from the full version structure. Slash-separated paths may be used to select nested elements, such as "features" or "source/vcs".
Raises E_INVARG if <detail> is a string that does not name an available version element.