PHP5 List of commonly used functions of shares
- 2020-06-07 04:09:00
- OfStack
As shown below:
usleep() The function delays code execution by several microseconds.
unpack() Function from 2 The base string unpacks data.
uniqid() The function is generated based on the current time in microseconds 1 A wei 1 the ID .
time_sleep_until() The function delays code execution until a specified time.
PHP5 Common function of time_nanosleep() The function delays code execution by several seconds and nanoseconds.
sleep() The function delays code execution by several seconds.
show_source() Function syntax highlighting the file.
strip_whitespace() The function returns deleted PHP Comments and whitespace characters in the source code file.
pack() The function loads the data 1 a 2 Base string.
ignore_user_abort() The function sets whether disconnection from the client terminates the execution of the script.
highlight_string() Function syntax highlighting a string.
highlight_file() Function syntax highlighting the file.
PHP5 Common function of get_browser() Function returns the performance of the user's browser.
exit() Output function 1 Message and exit the current script.
eval() The function follows the string PHP Code to calculate.
die() Output function 1 Message and exit the current script.
defined() The function checks whether a constant exists.
define() The function definitions 1 A constant.
constant() The function returns the value of a constant.
PHP5 Common function of connection_status() Function returns the current connection status.
connection_aborted() The function checks to see if the client is disconnected.
zip_read() The function reads open zip Under the file 1 A file.
zip_open() Function to open the ZIP File for reading.
zip_entry_read() Function from open zip Gets the content in a file project.
zip_entry_open() Function to open the 1 a ZIP File items for reading.
PHP5 Common function of zip_entry_name() The function returns zip The name of the file project.
zip_entry_filesize() The function returns zip The original size of the file item ( Before I compress it ) .
zip_entry_compressionmethod() The function returns zip Compression of file items.
zip_entry_compressedsize() The function returns zip Compressed file size for file items.
zip_entry_close() Function closed by zip_entry_open() Function open zip File file.
zip_close() Function closed by zip_open() Function open zip File file.
xml_set_unparsed_entity_decl_handler() The function specifies an entity name that cannot be resolved when encountered (NDATA) The function that is called at declaration time.
xml_set_processing_instruction_handler() The function specifies when the parser is in XML The function called when the processing instruction is found in the document.
xml_set_object() Functions are allowed in objects XML The parser.
PHP5 Common function of xml_set_notation_decl_handler() The function specifies when the parser is in XML The function called when a symbol declaration is found in the document.
xml_set_external_entity_ref_handler() The function specifies when the parser is in XML The function called when an external entity is found in the document.
xml_set_element_handler() The function sets up the start and end element handlers.
xml_set_default_handler() Function for XML The parser sets up the default data processor.
xml_set_character_data_handler() Function to set up a character data processor.
xml_parser_set_option() Function for XML The parser sets the options.
xml_parser_get_option() Function from XML The parser gets option setting information.
xml_parser_free() Function to release XML The parser.
PHP5 Common function of xml_parser_create() Function creates XML The parser.
xml_parser_create_ns() Function creates one with namespace support XML The parser.
xml_parse_into_struct() function XML The data is parsed into an array.
xml_parse() Function analysis XML The document.
xml_get_error_code() Function to obtain XML Parser error code.
xml_get_current_line_number() Function to obtain XML The parser is the forward sign.
xml_get_current_column_number() Function to obtain XML Parsers should be front row.
PHP5 Common function of xml_get_current_byte_index() Function to obtain XML The current byte index of the parser.
xml_error_string() Function to obtain XML Parser error description.
utf8_encode() function ISO-8859-1 String encoded as UTF-8 .
utf8_decode() function UTF-8 String decoded as ISO-8859-1 .
wordwrap() The function folds a string for a specified length.
vsprintf() Function writes a formatted string to a variable.
vprintf() The function outputs a formatted string.
vfprintf() The function writes a formatted string to the specified output stream.
PHP5 Common function of ucwords() Function converts the first character of each word in a string to uppercase.
ucfirst() Function converts the first character in a string to uppercase.
trim() Function to remove white space characters and other predefined characters from both ends of a string.
substr_replace() Function to put the string of 1 Part of it is replaced by another 1 A string.
substr_count() The function evaluates the number of occurrences of a substring within a string.
substr_compare() The function compares two strings from the specified starting length.
substr() Function returns a string of 1 Part.
strtr() The function converts a specific character in a string.
strtoupper() The function converts a string to uppercase.
strtolower() Function converts a string to lowercase.
PHP5 Common function of strtok() The function splits a string into smaller strings.
strstr() Search function 1 Two strings in another 1 The first in a string 1 Time.
strspn() The function returns the number of specific characters contained in a string.
strrpos() The function finds the string in another 1 The last in a string 1 Secondary position.
strripos() The function finds the string in another 1 The last in a string 1 Secondary position.
strrev() The function reverses the string.
strrchr() The function finds the string in another 1 The last in a string 1 And returns all characters from that position to the end of the string.
strpos() The function returns a string in another 1 The first in a string 1 Secondary position.
PHP5 Common function of strpbrk() The function searches a string for any of the specified characters 1 A.
strncmp() The function compares two strings.
strncasecmp() The function compares two strings.
strnatcmp() Function USES 1 A "natural" algorithm to compare two strings.
strnatcasecmp() Function USES 1 A "natural" algorithm to compare two strings.
strlen() The function returns the length of a string.
stristr() The function finds the string in another 1 The first in a string 1 Secondary position.
stripos() The function returns a string in another 1 The first in a string 1 Secondary position.
stripslashes() Function deletion by addslashes() The backslash added by the function.
stripcslashes() Function deletion by addcslashes() The backslash added by the function.
strip_tags() Function strip HTML , XML As well as PHP The label.
strcspn() The function returns the number of characters looked up in a string before finding any specified character.
PHP5 Common function of strcoll() The function compares two strings.
strcmp() The function compares two strings.
strchr() Search function 1 Two strings in another 1 The first in a string 1 Time.
strcasecmp() The function compares two strings.
str_word_count() The function evaluates the number of words in a string.
str_split() The function splits a string into an array.
str_shuffle() The function randomly scrambles all the characters in a string.
str_rot13() The function executes a string ROT13 Encoding.
str_replace() Function USES 1 A string replaces another in a string 1 Some of the characters.
str_repeat() The number of times the string is repeated.
str_pad() The file_string () function fills a string with the specified length.
str_ireplace() Function USES 1 A string replaces another in a string 1 Some of the characters.
PHP5 Common function of sscanf() The function parses the source based on the specified format 1 The input of a string.
sprintf() The write () function writes to a formatted string 1 Of the variables.
soundex() The function evaluates a string soundex The key.
similar_text() The function evaluates the number of matching characters in two strings.
sha1_file() Function evaluates to a file SHA-1 Hash.
sha1() The function evaluates a string SHA-1 Hash.
setlocale() Function to set locale information ( Geographic information ) .
PHP5 Common function of rtrim() P rtrim() function