PHP » Miscellaneous » phpinfo()

Syntax:
int phpinfo([int filter])
filter
A bit mask of flags ORed together to filter the output.

Displays information about PHP.

This function prints extensive information about the PHP installation, its configuration, the operating system, the environment etc. By default, all information possible is displayed, but the filter parameter can be used to show only the desired categories. The flags available are: INFO_GENERAL, INFO_CREDITS, INFO_CONFIGURATION, INFO_MODULES, INFO_ENVIRONMENT, INFO_VARIABLES, INFO_LICENSE, and INFO_ALL.

Examples

Code:
<?php

phpinfo();

?>
Explanation:

All information about PHP is printed. This makes a good first script to test a new PHP installation with.