PHP after a long period of development, many users are very familiar with PHP, here I published a personal understanding of the PHP string processing function, I hope to help everyone, PHP itself is a simple and powerful language.
The PHP language has core features such as powerful string and array processing capabilities, while greatly improving the support for object-oriented programming (PHP5 and above). By using standard and optional extensions, PHP applications can connect more than 10 databases such as MySQL or Oracle, draw, create PDF files, and create parsing XML files. You can also use the C language to write your own PHP extension module. For example, provide an interface function for PHP in a code base that already exists. You can also run PHP under Windows, use COM to control other Windows applications such as Word and Excel, or use ODBC to connect to a database, and here's a little bit of knowledge of PHP string handlers.
PHP String processing function Summary:
- addcslashes--adds a backslash escape character for some characters inside a string
- addslashes--characters inside a string are escaped in the specified manner
- bin2hex--converts binary data to hexadecimal notation
- chr--returns the ASCII code of a character
- chunk_split--divide a string into small pieces at a certain length of character
- convert_cyr_string--converting Slavic characters to other characters
- convert_uudecode--decrypting a string
- convert_uuencode--Encrypt a string
- count_chars--returns the character usage information for a string
- crc32--computes a crc32 polynomial of a string
- crypt--one-way hash encryption function
- explode--converts a string into an array form with a separator
- fprintf--returns data as required and writes directly to the document stream
- get_html_translation_table--returning HTML entities that can be converted
- Inverse of the html_entity_decode--htmlentities () function to convert HTML entities to characters
- htmlentities--convert some characters in a string to HTML entities
- Inverse of the htmlspecialchars_decode--htmlspecialchars () function to convert HTML entities to characters
- htmlspecialchars--convert some characters in a string to HTML entities
- implode--to convert an array to a string with a specific separator character
- join--convert an array to a string, alias of the Implode () function
- levenshtein--Calculate the difference size of two words
- localeconv--getting a number-related format definition
- ltrim--to remove whitespace to the left of a string or to a specified character
- md5_file--a file for MD5 algorithm encryption
- md5--a string for MD5 algorithm encryption
- metaphone--judging the pronunciation rules of a string
- money_format--output of numbers formatted according to parameters
- nl_langinfo--querying language and local information
- nl2br--Replace the line break "n" in the string with "
- ”
- number_format--output of numbers formatted according to parameters
- ord--converts an ASCII code to one character
- parse_str--Convert a string of a certain format into a variable and a value
- print--used to output a single value
- printf--data Display as required
- quoted_printable_decode--to encrypt a string into a 8-bit binary string
- quotemeta--to escape a number of specific characters
- rtrim--remove whitespace to the right of a string or a specified character
- setlocale--setting local formats for numbers, dates, and so on
- sha1_file--a file for SHA1 algorithm encryption
- sha1--a string for SHA1 algorithm encryption
- similar_text--compares two strings and returns the number of similar characters that the system thinks
- soundex--judging the pronunciation rules of a string
- The sprintf--returns the data as required, but does not output
- sscanf--can format a string
- str_ireplace--matches and replaces strings like the Str_replace () function, but is case insensitive
- str_pad--padding on both sides of a string
- str_repeat--repeating combinations of strings
- str_replace--matching and replacing strings
- str_rot13--string for ROT13 encryption processing
- str_shuffle--random ordering of characters inside a string
- str_split--splits a string into an array by character spacing
- str_word_count--get the English word information inside the string
- strcasecmp--size comparison of strings, case insensitive
- strchr--the alias of a partial strstr () function that returns a string by comparison
- strcmp--size comparison of strings
- strcoll– size comparison of strings based on local settings
- strcspn--returns the value of a continuous non-matching length of characters
- strip_tags--remove HTML and PHP code from a string
- stripcslashes--inverse literal addcslashes () function escapes processed strings
- stripos--finds and returns the position of the first occurrence, matching is case-insensitive
http://www.bkjia.com/PHPjc/446515.html www.bkjia.com true http://www.bkjia.com/PHPjc/446515.html techarticle PHP After a long period of development, many users are very familiar with PHP, here I publish a personal understanding of the PHP string processing function, I hope to help everyone, PHP itself is a simple and powerful ...