WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP 5 String Functions


PHP 5 String Functions

The PHP string capacities are a piece of the PHP center. No establishment is required to utilize these functions.


Function Description
addcslashes() Returns a string with oblique punctuation lines before the predetermined characters
addslashes() Returns a string with oblique punctuation lines before predefined characters
bin2hex() Converts a string of ASCII characters to hexadecimal values
chop() Removes whitespace or different characters from the correct end of a string
chr() Returns a character from a predefined ASCII value
chunk_split() Splits a string into a progression of littler parts
convert_cyr_string() Converts a string from one Cyrillic character-set to another
convert_uudecode() Decodes a uuencoded string
convert_uuencode() Encodes a string utilizing the uuencode algorithm
count_chars() Returns data about characters utilized in a string
crc32() Calculates a 32-bit CRC for a string
crypt() One-way string hashing
echo() Outputs at least one strings
explode() Breaks a string into an array
>fprintf() Writes an organized string to a predefined yield stream
get_html_translation_table() Returns the interpretation table utilized by htmlspecialchars() what's more, htmlentities()
hebrev() Converts Hebrew content to visual text
hebrevc() Converts Hebrew content to visual content and new lines (\n) into <br>
hex2bin() Converts a string of hexadecimal qualities to ASCII characters
html_entity_decode() Converts HTML elements to characters
htmlentities() Converts characters to HTML entities
htmlspecialchars_decode() Converts some predefined HTML elements to characters
htmlspecialchars() Converts some predefined characters to HTML entities
implode() Returns a string from the components of an array
join() Alias of implode()
lcfirst() Converts the principal character of a string to lowercase
levenshtein() Returns the Levenshtein separate between two strings
localeconv() Returns region numeric and fiscal organizing information
ltrim() Removes whitespace or different characters from the left half of a string
md5() Calculates the MD5 hash of a string
md5_file() Calculates the MD5 hash of a file
metaphone() Calculates the metaphone key of a string
money_format() Returns a string organized as a money string
nl_langinfo() Returns explicit nearby information
nl2br() Inserts HTML line breaks in front of each newline in a string
number_format() Formats a number with gathered thousands
ord() Returns the ASCII estimation of the principal character of a string
parse_str() Parses an inquiry string into variables
print() Outputs at least one strings
printf() Outputs an organized string
quoted_printable_decode() Converts a cited printable string to a 8-bit string
quoted_printable_encode() Converts a 8-bit string to a cited printable string
quotemeta() Quotes meta characters
rtrim() Removes whitespace or different characters from the correct side of a string
setlocale() Sets area information
sha1() Calculates the SHA-1 hash of a string
sha1_file() Calculates the SHA-1 hash of a file
similar_text() Calculates the closeness between two strings
soundex() Calculates the soundex key of a string
sprintf() Writes an organized string to a variable
sscanf() Parses contribution from a string as indicated by a format
str_getcsv() Parses a CSV string into an array
str_ireplace() Replaces a few characters in a string (case-insensitive)
str_pad() Pads a string to another length
str_repeat() Repeats a string a predefined number of times
str_replace() Replaces a few characters in a string (case-sensitive)
str_rot13() Performs the ROT13 encoding on a string
str_shuffle() Randomly rearranges all characters in a string
str_split() Splits a string into an array
str_word_count() Count the quantity of words in a string
strcasecmp() Compares two strings (case-insensitive)
strchr() Finds the primary event of a string inside another string (false name of strstr())
strcmp() Compares two strings (case-sensitive)
strcoll() Compares two strings (district based string comparison)
strcspn() Returns the quantity of characters found in a string previously any piece of some predefined characters are found
strip_tags() Strips HTML and PHP labels from a string
stripcslashes() Unquotes a string cited with addcslashes()
stripslashes() Unquotes a string cited with addslashes()
stripos() Returns the situation of the principal event of a string inside another string (case-insensitive)
stristr() Finds the principal event of a string inside another string (case-insensitive)
strlen() Returns the length of a string
strnatcasecmp() Compares two strings utilizing a "natural order" calculation (case-insensitive)
strnatcmp() Compares two strings utilizing a "natural order" calculation (case-sensitive)
strncasecmp() String examination of the first n characters (case-insensitive)
strncmp() String correlation of the first n characters (case-sensitive)
strpbrk() Searches a string for any of a lot of characters
strpos() Returns the situation of the main event of a string inside another string (case-sensitive)
strrchr() Finds the last event of a string inside another string
strrev() Reverses a string
strripos() Finds the situation of the last event of a string inside another string (case-insensitive)
< strrpos() Finds the situation of the last event of a string inside another string (case-sensitive)
strspn() Returns the quantity of characters found in a string that contains just characters from a predetermined charlist
strstr() Finds the main event of a string inside another string (case-sensitive)
strtok() Splits a string into littler strings
strtolower() Converts a string to lowercase letters
strtoupper() Converts a string to capitalized letters
strtr() Translates certain characters in a string
substr() Returns a piece of a string
substr_compare() Compares two strings from a predetermined begin position (double sheltered what's more, alternatively case-sensitive)
substr_count() Counts the occasions a substring happens in a string
substr_replace() Replaces a piece of a string with another string
trim() Removes whitespace or different characters from the two sides of a string
ucfirst() Converts the main character of a string to uppercase
ucwords() Converts the principal character of each word in a string to uppercase
vfprintf() Writes a designed string to a predetermined yield stream
vprintf() Outputs a designed string
vsprintf() Writes a designed string to a variable
wordwrap() Wraps a string to a given number of characters