Shared Flashcard Set

Details

String Functions
String Functions in PHP
94
Computer Science
Professional
02/03/2012

Additional Computer Science Flashcards

 


 

Cards

Term
addcslashes()
Definition
Returns a string with backslashes in front of the specified characters
Term
addslashes()
Definition
Returns a string with backslashes in front of predefined characters
Term
bin2hex()
Definition
Converts a string of ASCII characters to hexadecimal values
Term
chop()
Definition
Alias of rtrim()
Term
chr()
Definition
Returns a character from a specified ASCII value
Term
chunk_split()
Definition
Splits a string into a series of smaller parts
Term
convert_cyr_string()
Definition
Converts a string from one Cyrillic character-set to another
Term
convert_uudecode()
Definition
Decodes a uuencoded string
Term
convert_uuencode()
Definition
Encodes a string using the uuencode algorithm
Term
count_chars()
Definition
Returns how many times an ASCII character occurs within a string and returns the information
Term
crc32()
Definition
Calculates a 32-bit CRC for a string
Term
crypt()
Definition
One-way string encryption (hashing)
Term
echo()
Definition
Outputs strings
Term
explode()
Definition
Breaks a string into an array
Term
fprintf()
Definition
Writes a formatted string to a specified output stream
Term
get_html_translation_table()
Definition
Returns the translation table used by htmlspecialchars() and htmlentities()
Term
hebrev()
Definition
Converts Hebrew text to visual text
Term
hebrevc()
Definition
Converts Hebrew text to visual text and new lines (\n) into
Term
html_entity_decode()
Definition
Converts HTML entities to characters
Term
htmlentities()
Definition
Converts characters to HTML entities
Term
htmlspecialchars_decode()
Definition
Converts some predefined HTML entities to characters
Term
htmlspecialchars()
Definition
Converts some predefined characters to HTML entities
Term
implode()
Definition
Returns a string from the elements of an array
Term
join()
Definition
Alias of implode()
Term
levenshtein()
Definition
Returns the Levenshtein distance between two strings
Term
localeconv()
Definition
Returns locale numeric and monetary formatting information
Term
ltrim()
Definition
Strips whitespace from the left side of a string
Term
md5()
Definition
Calculates the MD5 hash of a string
Term
md5_file()
Definition
Calculates the MD5 hash of a file
Term
metaphone()
Definition
Calculates the metaphone key of a string
Term
money_format()
Definition
Returns a string formatted as a currency string
Term
nl_langinfo()
Definition
Returns specific local information
Term
nl2br()
Definition
Inserts HTML line breaks in front of each newline in a string
Term
number_format()
Definition
Formats a number with grouped thousands
Term
ord()
Definition
Returns the ASCII value of the first character of a string
Term
parse_str()
Definition
Parses a query string into variables
Term
print()
Definition
Outputs a string
Term
printf()
Definition
Outputs a formatted string
Term
quoted_printable_decode()
Definition
Decodes a quoted-printable string
Term
quotemeta()
Definition
Quotes meta characters
Term
rtrim()
Definition
Strips whitespace from the right side of a string
Term
setlocale()
Definition
Sets locale information
Term
sha1()
Definition
Calculates the SHA-1 hash of a string
Term
sha1_file()
Definition
Calculates the SHA-1 hash of a file
Term
similar_text()
Definition
Calculates the similarity between two strings
Term
soundex()
Definition
Calculates the soundex key of a string
Term
sprintf()
Definition
Writes a formatted string to a variable
Term
sscanf()
Definition
Parses input from a string according to a format
Term
str_ireplace()
Definition
Replaces some characters in a string (case-insensitive)
Term
str_pad()
Definition
Pads a string to a new length
Term
str_repeat()
Definition
Repeats a string a specified number of times
Term
str_replace()
Definition
Replaces some characters in a string (case-sensitive)
Term
str_rot13()
Definition
Performs the ROT13 encoding on a string
Term
str_shuffle()
Definition
Randomly shuffles all characters in a string
Term
str_split()
Definition
Splits a string into an array
Term
str_word_count()
Definition
Count the number of words in a string
Term
strcasecmp()
Definition
Compares two strings (case-insensitive)
Term
strchr()
Definition
Finds the first occurrence of a string inside another string (alias of strstr())
Term
strcmp()
Definition
Compares two strings (case-sensitive)
Term
strcoll()
Definition
Locale based string comparison
Term
strcspn()
Definition
Returns the number of characters found in a string before any part of some specified characters are found
Term
strip_tags()
Definition
Strips HTML and PHP tags from a string
Term
stripcslashes()
Definition
Unquotes a string quoted with addcslashes()
Term
stripslashes()
Definition
Unquotes a string quoted with addslashes()
Term
stripos()
Definition
Returns the position of the first occurrence of a string inside another string (case-insensitive)
Term
stristr()
Definition
Finds the first occurrence of a string inside another string (case-insensitive)
Term
strlen()
Definition
Returns the length of a string
Term
strnatcasecmp()
Definition
Compares two strings using a "natural order" algorithm (case-insensitive)
Term
strnatcmp()
Definition
Compares two strings using a "natural order" algorithm (case-sensitive)
Term
strncasecmp()
Definition
String comparison of the first n characters (case-insensitive)
Term
strncmp()
Definition
String comparison of the first n characters (case-sensitive)
Term
strpbrk()
Definition
Searches a string for any of a set of characters
Term
strpos()
Definition
Returns the position of the first occurrence of a string inside another string (case-sensitive)
Term
strrchr()
Definition
Finds the last occurrence of a string inside another string
Term
strrev()
Definition
Reverses a string
Term
strripos()
Definition
Finds the position of the last occurrence of a string inside another string (case-insensitive)
Term
strrpos()
Definition
Finds the position of the last occurrence of a string inside another string (case-sensitive)
Term
strspn()
Definition
Returns the number of characters found in a string that contains only characters from a specified charlist
Term
strstr()
Definition
Finds the first occurrence of a string inside another string (case-sensitive)
Term
strtok()
Definition
Splits a string into smaller strings
Term
strtolower()
Definition
Converts a string to lowercase letters
Term
strtoupper()
Definition
Converts a string to uppercase letters
Term
strtr()
Definition
Translates certain characters in a string
Term
substr()
Definition
Returns a part of a string
Term
substr_compare()
Definition
Compares two strings from a specified start position (binary safe and optionally case-sensitive)
Term
substr_count()
Definition
Counts the number of times a substring occurs in a string
Term
substr_replace()
Definition
Replaces a part of a string with another string
Term
trim()
Definition
Strips whitespace from both sides of a string
Term
ucfirst()
Definition
Converts the first character of a string to uppercase
Term
ucwords()
Definition
Converts the first character of each word in a string to uppercase
Term
vfprintf()
Definition
Writes a formatted string to a specified output stream
Term
vprintf()
Definition
Outputs a formatted string
Term
vsprintf()
Definition
Writes a formatted string to a variable
Term
wordwrap()
Definition
Wraps a string to a given number of characters
Supporting users have an ad free experience!