Home >Backend Development >PHP Tutorial >PHP system functions that all programmers should know

PHP system functions that all programmers should know

黄舟
黄舟Original
2017-07-25 10:26:05750browse

As a veteran-level PHP programmer, knowing the following PHP system-level functions is not enough! It should be useful when getting system information and debugging programs!

PHP system class function

assert function: Check whether the assertion statement is wrong extension_loaded function: Check whether the PHP extension is loaded get_cfg_var function: Get the value of the PHP configuration option get_current_user function: Get the name of the owner of the current PHP script get_defined_constants function: Returns an array containing PHP predefined constant information get_extension_funcs function: Returns an array containing the names of all functions in the specified module get_include_path function: Returns the currently configured file inclusion path information get_included_files Function: Returns an array containing information about the file get_loaded_extensions function: Returns an array containing information about all loaded modules get_magic_quotes_gpc function: Gets the status information of magic_quotes_gpc get_magic_quotes_runtime function: Gets the status information of magic_quotes_ runtime get_required_files function: Returns an array containing information about the file getenv function: Get the value of the PHP environment variable

PHP system class function

getlastmod function: Get the last modification time of the current PHP page file getmygid function: Get the current PHP script The GID number of the page owner getmyinode function: Get the INODE number of the current PHP script page getmypid function: Get the PID of PHP getmyuid function: Get the UID number of the PHP script page owner getopt function: Get the settings from the command line parameter list getrusage function: Get Current resource syntax ini_get_all function: Get all configuration options ini_get function: Get the value of the configuration option memory_get_usage function: Return the memory space occupied by the PHP script php_ini_scanned_files function: Return the configuration file list in the configuration file directory php_logo_guid function: Get the GUID of the LOGO image php_sapi_name Function: Get the interface type between PHP and the Web server php_uname function: Get the operating system information on which the PHP script is running phpcredits function: Print the credits list phpinfo function: Output PHP information phpversion function: Get the PHP version zend_logo_guid function: Get the ZEND LOGO image GUID zend_version function: Get the version of the ZEND engine

PHP configuration class function

assert_options function: Set or get different declaration tags ini_alter function: Set PHP configuration options Value ini_restore function: restore the value of the configuration option ini_set function: set the value of the PHP configuration option putenv function: set the environment variable restore_include_path function: restore the file include path configuration information set_include_path function: set the file include path configuration option set_magic_quotes_runtime function: set the magic_quotes run time set_time_limit Function: Set the maximum execution time

Other functions

dl function: Load the PHP extension module main function: Just a nominal main() function version_compare function: compare PHP two version values

The above is the detailed content of PHP system functions that all programmers should know. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php函数Next article:php 修饰符介绍