AddSlashes: adds a slash to the string.
Bin2hex: Binary to hexadecimal.
Chop: removes consecutive gaps.
Chr: returns the character of the ordinal value.
Chunk_split: Splits a string into segments.
Convert_cyr_string: Convert the ancient Slavic string to another string.
Crypt: encrypt the string with DES encoding.
Echo: Output string.
Explode: Cut string.
Flush: clears the output buffer.
Get_meta_tags: extracts all metadata marked by meta from the file.
Htmlspecialchars: convert special characters into HTML format.
Htmlentities: converts all characters into HTML strings.
Implode: converts an array into a string.
Join: converts an array into a string.
Ltrim: removes consecutive white spaces.
Md5: Calculate the MD5 of the string.
Nl2br: converts a line break to <br>.
Ord: returns the ordinal value of a character.
Parse_str: parses the query string into a variable.
Print: Output string.
Printf: output the formatted string.
Quoted_printable_decode: convert an qp encoded string to an 8-Bit String.
QuoteMeta: Add a reference symbol.
Rawurldecode: Restores a string from a URL-specific format to a normal string.
Rawurlencode: encode a string into a URL-specific format.
Setlocale: configure the region information.
Similar_text: String similarity calculation.
Soundex: calculates the pronunciation of a string.
Sprintf: format the string.
Strchr: Find the first occurrence character.
Strcmp: String comparison.
Strcspns: the length of different strings.
Strip_tags: removes HTML and PHP tags.
StripSlashes: removes the backslash.
Strlen: gets the string length.
Strrpos: Find the last occurrence of a character in the string.
Strpos: searches for the first occurrence of a character in a string.
Strrchr: gets the string starting from the last occurrence of a character.
Strrev: reverse string.
Strspns: identifies the number of masks that a string falls into another string.
Strstr: returns the string from the beginning to the end of a string.
Strtok: Cut string.
Strtolower: converts all strings to lowercase letters.
Strtoupper: converts all strings to uppercase.
Str_replace: String replacement.
Strtr: converts certain characters.
Substr: obtains some strings.
Trim: removes spaces at the beginning and end of a string.
Ucfirst: uppercase for the first character of the string.
Ucwords: change the first letter of each character in the string to uppercase.
Addslashes
Return Value: String
Function Type: Data Processing
Description: This function allows the database to process strings with diagonal lines added to the quotation marks for the database query to operate smoothly. The modified characters include single quotation marks (), double quotation marks ("), backslash (), and null characters NUL (the null byte ).
Reference: stripslashes () htmlspecialchars () quotemeta ()
Bin2hex
Return Value: String
Function Type: Data Processing
Description: This function converts a binary string to a hexadecimal string.
Example
Supplement:
The josh@superfork.com (22-jun-1999) writes a function that converts a hexadecimal character into a binary character.
<?
Function hex2bin ($ data ){
$ Len = strlen ($ data );
For ($ I = 0; $ I <$ len; $ I + = 2 ){
$ Newdata. = pack ("C", hexdec (substr ($ string, $ I, 2 )));
}
Return $ newdata;
}
?>
Chop
Return Value: String
Function Type: Data Processing
Description: This function clears consecutive blank spaces of strings.
Example
<?
$ Trimmed = Chop ($ line );
?>
Reference: trim ()
Chr
Return Value: String
Function Type: Data Processing
Description: This function converts the ordinal number of characters into ASCII characters. This function is compared with ord.