PHP5 list of commonly used functions

Source: Internet
Author: User
Tags constant current time php code unpack unique id zip

PHP has been updated to many versions, the most recent use of more than a few PHP5. Here we summarize the PHP5 common functions so that you can actually write the code in the future to view.

The Usleep () function delays code execution for several microseconds.

The unpack () function unpack the data from a binary string.

The Uniqid () function generates a unique ID based on the current time in microseconds.

The Time_sleep_until () function delays code execution until the specified time.

PHP5 the Time_nanosleep () function of a common function delays code execution for several seconds and nanoseconds.

The sleep () function delays code execution for several seconds.

The Show_source () function highlights the file syntax.

The Strip_whitespace () function returns the source code files for the deleted PHP annotations and whitespace characters.

The pack () function loads data into a binary string.

The Ignore_user_abort () function setting terminates the execution of the script if it disconnects from the client.

The highlight_string () function displays syntax highlighting for strings.

The Highlight_file () function highlights the file syntax.

The Get_browser () function of the PHP5 function returns the performance of the user's browser.

The exit () function prints a message and exits the current script.

The eval () function calculates the string according to the PHP code.

The Die () function prints a message and exits the current script.

The defined () function checks whether a constant exists.

The Define () function defines a constant.

The constant () function returns the value of a constant.

PHP5 the Connection_status () function of a common function returns the current connection state.

The connection_aborted () function checks to see if the client is disconnected.

The Zip_read () function reads the next file in the open zip file.

The Zip_open () function opens a ZIP file for reading.

The Zip_entry_read () function gets the content from the Open zip archive project.

The Zip_entry_open () function opens a ZIP archive project for reading.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.