Академический Документы
Профессиональный Документы
Культура Документы
Installation
The string functions are part of the PHP core. There is no installation needed to use these functions.
htmlentities() htmlspecialchars_decode() htmlspecialchars() implode() join() levenshtein() localeconv() ltrim() md5() md5_file() metaphone() money_format() nl_langinfo() nl2br() number_format() ord() parse_str() print() printf() quoted_printable_decode() quotemeta() rtrim() setlocale() sha1() sha1_file() similar_text() soundex() sprintf() sscanf() str_ireplace() str_pad() str_repeat() str_replace() str_rot13() str_shuffle() str_split() str_word_count() strcasecmp() strchr()
Converts characters to HTML entities 3 Converts some predefined HTML entities to characters 5 Converts some predefined characters to HTML entities 3 Returns a string from the elements of an array 3 Alias of implode() 3 Returns the Levenshtein distance between two strings 3 Returns locale numeric and monetary formatting 4 information Strips whitespace from the left side of a string 3 Calculates the MD5 hash of a string 3 Calculates the MD5 hash of a file 4 Calculates the metaphone key of a string 4 Returns a string formatted as a currency string 4 Returns specific local information 4 Inserts HTML line breaks in front of each newline in a 3 string Formats a number with grouped thousands 3 Returns the ASCII value of the first character of a 3 string Parses a query string into variables 3 Outputs a string 3 Outputs a formatted string 3 Decodes a quoted-printable string 3 Quotes meta characters 3 Strips whitespace from the right side of a string 3 Sets locale information 3 Calculates the SHA-1 hash of a string 4 Calculates the SHA-1 hash of a file 4 Calculates the similarity between two strings 3 Calculates the soundex key of a string 3 Writes a formatted string to a variable 3 Parses input from a string according to a format 4 Replaces some characters in a string (case-insensitive) 5 Pads a string to a new length 4 Repeats a string a specified number of times 4 Replaces some characters in a string (case-sensitive) 3 Performs the ROT13 encoding on a string 4 Randomly shuffles all characters in a string 4 Splits a string into an array 5 Count the number of words in a string 4 Compares two strings (case-insensitive) 3 Finds the first occurrence of a string inside another 3
strcmp() strcoll() strcspn() strip_tags() stripcslashes() stripslashes() stripos() stristr() strlen() strnatcasecmp() strnatcmp() strncasecmp() strncmp() strpbrk() strpos() strrchr() strrev() strripos() strrpos() strspn() strstr() strtok() strtolower() strtoupper() strtr() substr() substr_compare() substr_count()
string (alias of strstr()) Compares two strings (case-sensitive) Locale based string comparison Returns the number of characters found in a string before any part of some specified characters are found Strips HTML and PHP tags from a string Unquotes a string quoted with addcslashes() Unquotes a string quoted with addslashes() Returns the position of the first occurrence of a string inside another string (case-insensitive) Finds the first occurrence of a string inside another string (case-insensitive) Returns the length of a string Compares two strings using a "natural order" algorithm (case-insensitive) Compares two strings using a "natural order" algorithm (case-sensitive) String comparison of the first n characters (caseinsensitive) String comparison of the first n characters (casesensitive) Searches a string for any of a set of characters Returns the position of the first occurrence of a string inside another string (case-sensitive) Finds the last occurrence of a string inside another string Reverses a string Finds the position of the last occurrence of a string inside another string (case-insensitive) Finds the position of the last occurrence of a string inside another string (case-sensitive) Returns the number of characters found in a string that contains only characters from a specified charlist Finds the first occurrence of a string inside another string (case-sensitive) Splits a string into smaller strings Converts a string to lowercase letters Converts a string to uppercase letters Translates certain characters in a string Returns a part of a string Compares two strings from a specified start position (binary safe and optionally case-sensitive) Counts the number of times a substring occurs in a
3 4 3 3 4 3 5 3 3 4 4 4 4 5 3 3 3 5 3 3 3 3 3 3 3 3 5 4
string Replaces a part of a string with another string Strips whitespace from both sides of a string Converts the first character of a string to uppercase Converts the first character of each word in a string to uppercase Writes a formatted string to a specified output stream Outputs a formatted string Writes a formatted string to a variable Wraps a string to a given number of characters
4 3 3 3 5 4 4 4
HTML_SPECIALCHARS HTML_ENTITIES ENT_COMPAT ENT_QUOTES ENT_NOQUOTES CHAR_MAX LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_ALL LC_MESSAGES
Installation
The XML functions are part of the PHP core. There is no installation needed to use these functions.
xml_get_current_column_number() xml_get_current_line_number() xml_get_error_code() xml_parse() xml_parse_into_struct() xml_parser_create_ns() xml_parser_create() xml_parser_free() xml_parser_get_option() xml_parser_set_option() xml_set_character_data_handler() xml_set_default_handler() xml_set_element_handler() xml_set_end_namespace_decl_handler() xml_set_external_entity_ref_handler() xml_set_notation_decl_handler() xml_set_object() xml_set_processing_instruction_handler() xml_set_start_namespace_decl_handler() xml_set_unparsed_entity_decl_handler()
XML parser Gets the current column number from the XML parser Gets the current line number from the XML parser Gets an error code from the XML parser Parses an XML document Parse XML data into an array Create an XML parser with namespace support Create an XML parser Free an XML parser Get options from an XML parser Set options in an XML parser Set handler function for character data Set default handler function Set handler function for start and end element of elements Set handler function for the end of namespace declarations Set handler function for external entities Set handler function for notation declarations Use XML Parser within an object Set handler function for processing instruction Set handler function for the start of namespace declarations Set handler function for unparsed entity declarations
3 3 3 3 3 4 3 3 3 3 3 3 3 4 3 3 4 3 4 3
XML_ERROR_TAG_MISMATCH (integer) XML_ERROR_DUPLICATE_ATTRIBUTE (integer) XML_ERROR_JUNK_AFTER_DOC_ELEMENT (integer) XML_ERROR_PARAM_ENTITY_REF (integer) XML_ERROR_UNDEFINED_ENTITY (integer) XML_ERROR_RECURSIVE_ENTITY_REF (integer) XML_ERROR_ASYNC_ENTITY (integer) XML_ERROR_BAD_CHAR_REF (integer) XML_ERROR_BINARY_ENTITY_REF (integer) XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF (integer) XML_ERROR_MISPLACED_XML_PI (integer) XML_ERROR_UNKNOWN_ENCODING (integer) XML_ERROR_INCORRECT_ENCODING (integer) XML_ERROR_UNCLOSED_CDATA_SECTION (integer) XML_ERROR_EXTERNAL_ENTITY_HANDLING (integer) XML_OPTION_CASE_FOLDING (integer) XML_OPTION_TARGET_ENCODING (integer) XML_OPTION_SKIP_TAGSTART (integer) XML_OPTION_SKIP_WHITE (integer)