Get Creative with PHP's String Functions !! #php

preview_player
Показать описание
PHP String Functions:

PHP provides various string functions to access and manipulate strings.

addcslashes()
It is used to return a string with backslashes.
addslashes()
It is used to return a string with backslashes.
bin2hex()
It is used to converts a string of ASCII characters to hexadecimal values.
chop()
It removes whitespace or other characters from the right end of a string
chr()
It is used to return a character from a specified ASCII value.
chunk_split()
It is used to split a string into a series of smaller parts.
convert_cyr_string()
It is used to convert a string from one Cyrillic character-set to another.
convert_uudecode()
It is used to decode a uuencoded string.
convert_uuencode()
It is used to encode a string using the uuencode algorithm.
count_chars()
It is used to return information about characters used in a string.
crc32()
It is used to calculate a 32-bit CRC for a string.
crypt()
It is used to create hashing string One-way.
echo()
It is used for output one or more strings.
explode()
It is used to break a string into an array.
fprint()
It is used to write a formatted string to a stream.
get_html_translation_table()
Returns translation table which is used by htmlspecialchars() and htmlentities().
hebrev()
It is used to convert Hebrew text to visual text.
hebrevc
It is used to convert Hebrew text to visual text and new lines ( into br.
hex2bin
It is used to convert string of hexadecimal values to ASCII characters.
htmlentities
It is used to convert character to HTML entities.
html_entity_decode
It is used to convert HTML entities to characters.
htmlspecialchars
Converts the special characters to html entities.
htmlspecialchars_decode
Converts the html entities back to special characters.
Implode
It is used to return a string from the elements of an array.
Join
It is the Alias of implod function.
Levenshtein
It is used to return the Levenshtein distance between two strings.
Lcfirst
It is used to convert the first character of a string to lowercase.
localeconv
Get numeric formatting information
ltrim
It is used to remove whitespace from the left side of a string.
md5
It is used to calculate the MD5 hash of a string.
md5_files
It is used to calculate MD5 hash of a file.
metaphone
It is used to calculate the metaphone key of a string.
money_format
It is used to return a string formatted as a currency string.
nl2br
It is used to insert HTML line breaks in front of each newline in a string.
nl_langinfo
Query language and locale information
number_format
It is used to format a number with grouped thousands.
ord()
It is used to return ASCII value of the first character of a string.
parse_str
It is used to parse a query string into variables.
print
It is used for output one or more strings.

"Keep Learning & Keep Exploring"