Extension:PhpTags Functions/Functions/String
Appearance
These functions are similar to the native PHP functions, so you can use PHP documentation |
List of implemented functions
[edit]- addcslashes β Quote string with slashes in a C style
- addslashes β Quote string with slashes
- bin2hex β Convert binary data into hexadecimal representation
- chop β Alias of rtrim
- chr β Return a specific character
- chunk_split β Split a string into smaller chunks
- convert_cyr_string β Convert from one Cyrillic character set to another
- convert_uudecode β Decode a uuencoded string
- convert_uuencode β Uuencode a string
- count_chars β Return information about characters used in a string
- crc32 β Calculates the crc32 polynomial of a string
- crypt β One-way string hashing
- explode β Split a string by string
- get_html_translation_table β Returns the translation table used by htmlspecialchars and htmlentities
- hebrev β Convert logical Hebrew text to visual text
- hebrevc β Convert logical Hebrew text to visual text with newline conversion
- html_entity_decode β Convert all HTML entities to their applicable characters
- htmlentities β Convert all applicable characters to HTML entities
- htmlspecialchars_decode β Convert special HTML entities back to characters
- htmlspecialchars β Convert special characters to HTML entities
- implode β Join array elements with a string
- join β Alias of implode
- lcfirst β Make a string's first character lowercase
- levenshtein β Calculate Levenshtein distance between two strings
- localeconv β Get numeric formatting information
- ltrim β Strip whitespace (or other characters) from the beginning of a string
- md5 β Calculate the md5 hash of a string
- metaphone β Calculate the metaphone key of a string
- money_format β Formats a number as a currency string
- nl_langinfo β Query language and locale information
- nl2br β Inserts HTML line breaks before all newlines in a string
- number_format β Format a number with grouped thousands
- ord β Return ASCII value of character
- printf β Output a formatted string
- quoted_printable_decode β Convert a quoted-printable string to an 8 bit string
- quoted_printable_encode β Convert a 8 bit string to a quoted-printable string
- quotemeta β Quote meta characters
- rtrim β Strip whitespace (or other characters) from the end of a string
- sha1 β Calculate the sha1 hash of a string
- similar_text β Calculate the similarity between two strings
- soundex β Calculate the soundex key of a string
- sprintf β Return a formatted string
- sscanf β Parses input from a string according to a format
- str_getcsv β Parse a CSV string into an array
- str_ireplace β Case-insensitive version of str_replace.
- str_pad β Pad a string to a certain length with another string
- str_repeat β Repeat a string
- str_replace β Replace all occurrences of the search string with the replacement string
- str_rot13 β Perform the rot13 transform on a string
- str_shuffle β Randomly shuffles a string
- str_split β Convert a string to an array
- str_word_count β Return information about words used in a string
- strcasecmp β Binary safe case-insensitive string comparison
- strchr β Alias of strstr
- strcmp β Binary safe string comparison
- strcoll β Locale based string comparison
- strcspn β Find length of initial segment not matching mask
- strip_tags β Strip HTML and PHP tags from a string
- stripcslashes β Un-quote string quoted with addcslashes
- stripos β Find the position of the first occurrence of a case-insensitive substring in a string
- stripslashes β Un-quotes a quoted string
- stristr β Case-insensitive strstr
- strlen β Get string length
- strnatcasecmp β Case insensitive string comparisons using a "natural order" algorithm
- strnatcmp β String comparisons using a "natural order" algorithm
- strncasecmp β Binary safe case-insensitive string comparison of the first n characters
- strncmp β Binary safe string comparison of the first n characters
- strpbrk β Search a string for any of a set of characters
- strpos β Find the position of the first occurrence of a substring in a string
- strrchr β Find the last occurrence of a character in a string
- strrev β Reverse a string
- strripos β Find the position of the last occurrence of a case-insensitive substring in a string
- strrpos β Find the position of the last occurrence of a substring in a string
- strspn β Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask.
- strstr β Find the first occurrence of a string
- strtok β Tokenize string
- strtolower β Make a string lowercase
- strtoupper β Make a string uppercase
- strtr β Translate characters or replace substrings
- substr_compare β Binary safe comparison of two strings from an offset, up to length characters
- substr_count β Count the number of substring occurrences
- substr_replace β Replace text within a portion of a string
- substr β Return part of a string
- trim β Strip whitespace (or other characters) from the beginning and end of a string
- ucfirst β Make a string's first character uppercase
- ucwords β Uppercase the first character of each word in a string
- vprintf β Output a formatted string
- vsprintf β Return a formatted string
- wordwrap β Wraps a string to a given number of characters
The following functions are implemented in the Runtime of the extension PhpTags.
Waiting for implementation
[edit]This function require PHP 5 >= 5.4.0, but now used PHP 5.3+
- hex2bin β Decodes a hexadecimally encoded binary string
This functions can be added by request
- parse_str β Parses the string into variables
- setlocale β Set locale information (virtual locale)
Can not be implemented
[edit]This functions are used the resources