sprintf – PHP String Functions
Syntax : sprintf ( string_format, arg1, arg2, arg3… ); Description : The sprintf() function output a formatted string. Output will come according to the string_format. The arg1, arg2, ++ parameters will...
Syntax : sprintf ( string_format, arg1, arg2, arg3… ); Description : The sprintf() function output a formatted string. Output will come according to the string_format. The arg1, arg2, ++ parameters will...
Syntax : setlocale ( category, locale ); Description : The setlocale() function sets the locale information. Locale information is currency format, currency symbol, language, monetary, time and other information specific for a...
Syntax : printf ( string_format, arg1, arg2, arg3… ); Description : The printf() function output a formatted string. Output will come according to the string_format. The arg1, arg2, ++ parameters will...
Syntax : quotemeta ( string ); Description : The quotemeta() function adds backslashes in front of below characters. The predefined characters are: period (.) backslash (\) plus sign (+) asterisk (*)...
Syntax : quoted_printable_decode ( string ); Description : The quoted_printable_decode() function decodes a quoted-printable string to an 8-bit string. This function returns an 8-bit binary string corresponding to the decoded quoted...
Syntax : quoted_printable_encode ( string ); Description : The quoted_printable_encode() function convert a 8 bit string to a quoted-printable string. Quoted printable string is created according to » RFC2045, section 6.7. It is same...
Syntax : print ( strings ); Description : The print() function outputs one or more strings. It is not actually a real function (it is a language construct) so you are...
Syntax : parse_str ( stringto_encode, array ); Description : The parse_str() function parses a query string into variables. Parses stringto_encode, as if it were the query string passed via a URL and...
Syntax : ord ( string ); Description : The ord() function calculates the ASCII value of first character of a string. This will convert the first byte of a string to...
Syntax : nl_langinfo ( item ); Description : nl_langinfo() function returns the locale information. nl_langinfo() is used to access individual elements of the locale categories. localeconv(), which returns all of the elements, nl_langinfo() allows you to...
Syntax : money_format ( format, number ); Description : The money_format() function formats a number to a currency string. This function inserts a formatted number where there is a percent (%)...
Syntax : metaphone ( string, key_length ) Description : metaphone() function calculates the metaphone key of string. A metaphone key represents how a string sounds if said by an English speaking person. It can...
Syntax : md5 ( string, raw_output ); Description : The md5() function calculates the MD5 hash of a string. The md5() function uses the RSA Data Security, Inc. MD5 Message-Digest Algorithm and...
Syntax : md5_file ( file_name, raw_output ); Description : The md5_file() function calculates the MD5 hash of a file. The md5_file() function uses the RSA Data Security, Inc. MD5 Message-Digest Algorithm....
Syntax : localeconv ( ) Description : It’s an inbuilt function of PHP. localeconv() function will Get numeric formatting information. Output : localeconv() returns data based upon the current locale as set...
Syntax : levenshtein ( string1, string2) OR levenshtein ( string1, string2, char_ins , char_rep , char_del) Description : It’s an inbuilt function of PHP. levenshtein() function will calculate Levenshtein distance between two...
Syntax : htmlspecialchars_decode ( strings, flags ); Description : htmlspecialchars_decode() function will converts some predefined HTML entities back to characters. Here is the list of predefined characters. The converted entities are: & &...
Syntax : get_html_translation_table ( strings, flags, encoding/character-set ); Description : get_html_translation_table() function returns the translation table used by htmlspecialchars() and htmlentities(). Note : htmlentities() function is reverse of it. Parameter : strings – This...
Syntax : fprintf ( stream_handle, string_format, arg1, arg2, arg3… ); Description : fprintf() function writes a formatted string to a stream. Stream specified by stream_handle. Write a string produced according to string_format...
Syntax : string crypt ( string, salt ); Description : It is One-way string hashing. The crypt() function returns hashed string on the basis of algorithms i.e Standard DES-based hash, Extended DES-based hash,MD5...