PHP provides very useful system constants for you to get the current row number (_ LINE _), FILE (_ FILE _), Directory (_ DIR __), FUNCTION name (_ FUNCTION _), CLASS name (_ CLASS _), METHOD name (_ METHOD _), and NAMESPACE (_ NAMESPACE __)
Register the stop function
Register_shutdown_function ()
String compression
Gzcompress () and gzuncompress ()
Serialization
Serialize () and unserialize ():
Json_encode () and json_decode ()
Generate a unique ID
Uniqid ()
System constant
PHP provides very useful system constants for you to get the current row number (_ LINE _), FILE (_ FILE _), Directory (_ DIR __), FUNCTION name (_ FUNCTION _), CLASS name (_ CLASS _), METHOD name (_ METHOD _), and NAMESPACE (_ NAMESPACE __)
CPU usage information
Getrusage ()
Memory usage information
Memory_get_usage ()
Memory peak
Memory_get_peak_usage ()
Search for files
Glob ()
Parameters of any number of functions
Func_get_args ()