parse_str

(PHP 4, PHP 5, PHP 7) Parses the string into variables void parse_str ( string $str [, array &$arr ] ) Parses str as if it were the query string passed via a URL and sets variables in the current scope. Note: To get the current QUERY_STRING, you may use the variable $_SERVER['QUERY_STRING']. Also, you may want to read the section on variables from external sources. Note: The magic_quotes_gpc setting affects the

ord

(PHP 4, PHP 5, PHP 7) Return ASCII value of character int ord ( string $string ) Returns the ASCII value of the first character of string. This function complements chr(). Parameters: string A character. Returns: Returns the ASCII value as an integer. Examples: ord() example

number_format

(PHP 4, PHP 5, PHP 7) Format a number with grouped thousands string number_format ( float $number [, int $decimals = 0 ] ) string number_format ( float $number , int $decimals = 0 , string $dec_point = "." , string $thousands_sep = "," ) This function accepts either one, two, or four parameters (not three): If only one parameter is given, number will be formatted without decimals, but with a comma (",") between every gro

nl2br

(PHP 4, PHP 5, PHP 7) Inserts HTML line breaks before all newlines in a string string nl2br ( string $string [, bool $is_xhtml = true ] ) Returns string with '<br />' or '<br>' inserted before all newlines (\r\n, \n\r, \n and \r). Parameters: string The input string. is_xhtml Whether to use XHTML compatible line breaks or n

nl_langinfo

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Query language and locale information string nl_langinfo ( int $item ) nl_langinfo() is used to access individual elements of the locale categories. Unlike localeconv(), which returns all of the elements, nl_langinfo() allows you to select any specific element. Parameters: item item may be an integer value of the element or the constant n

money_format

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Formats a number as a currency string string money_format ( string $format, float $number ) money_format() returns a formatted version of number. This function wraps the C library function strfmon(), with the difference that this implementation converts only one number at a time. Parameters: format The format specification consists of the

metaphone

(PHP 4, PHP 5, PHP 7) Calculate the metaphone key of a string string metaphone ( string $str [, int $phonemes = 0 ] ) Calculates the metaphone key of str. Similar to soundex() metaphone creates the same key for similar sounding words. It's more accurate than soundex() as it knows the basic rules of English pronunciation. The metaphone generated keys are of variable length. Metaphone was developed by Lawrence Philips <

md5

(PHP 4, PHP 5, PHP 7) Calculate the md5 hash of a string string md5 ( string $str [, bool $raw_output = false ] ) Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. Parameters: str The string. raw_output If the optional raw_output is set to TRUE, then the md5 digest i

md5_file

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Calculates the md5 hash of a given file string md5_file ( string $filename [, bool $raw_output = false ] ) Calculates the MD5 hash of the file specified by the filename parameter using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. The hash is a 32-character hexadecimal number. Parameters: filename The

ltrim

(PHP 4, PHP 5, PHP 7) Strip whitespace (or other characters) from the beginning of a string string ltrim ( string $str [, string $character_mask ] ) Strip whitespace (or other characters) from the beginning of a string. Parameters: str The input string. character_mask You can also specify the characters you want to strip, by means of th