similar_text

(PHP 4, PHP 5, PHP 7) Calculate the similarity between two strings int similar_text ( string $first, string $second [, float &$percent ] ) This calculates the similarity between two strings as described in Programming Classics: Implementing the World's Best Algorithms by Oliver (ISBN 0-131-00413-1). Note that this implementation does not use a stack as in Oliver's pseudo code, but recursive calls which may or may not spe

sha1

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Calculate the sha1 hash of a string string sha1 ( string $str [, bool $raw_output = false ] ) Calculates the sha1 hash of str using the » US Secure Hash Algorithm 1. Parameters: str The input string. raw_output If the optional raw_output is set to TRUE, then the sha1 digest is instead returned in raw b

sha1_file

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Calculate the sha1 hash of a file string sha1_file ( string $filename [, bool $raw_output = false ] ) Calculates the sha1 hash of the file specified by filename using the » US Secure Hash Algorithm 1, and returns that hash. The hash is a 40-character hexadecimal number. Parameters: filename The filename of the file to hash.

setlocale

(PHP 4, PHP 5, PHP 7) Set locale information string setlocale ( int $category, string $locale [, string $... ] ) string setlocale ( int $category , array $locale ) Sets locale information. Parameters: category category is a named constant specifying the category of the functions affected by the locale setting: LC_ALL for all of the below LC_COLLATE for string comp

rtrim

(PHP 4, PHP 5, PHP 7) Strip whitespace (or other characters) from the end of a string string rtrim ( string $str [, string $character_mask ] ) This function returns a string with whitespace stripped from the end of str. Without the second parameter, rtrim() will strip these characters: " " (ASCII 32 (0x20)), an ordinary space. "\t" (ASCII 9 (0x09)), a tab. "\n" (ASCII 10 (0x0A)), a new line (line feed). "\r"

quotemeta

(PHP 4, PHP 5, PHP 7) Quote meta characters string quotemeta ( string $str ) Returns a version of str with a backslash character (\) before every character that is among these: . \ + * ? [ ^ ] ( $ ) Parameters: str The input string. Returns: Returns the string with meta characters quoted, or FALSE if an empty string is given as str.

quoted_printable_encode

(PHP 5 >= 5.3.0, PHP 7) Convert a 8 bit string to a quoted-printable string string quoted_printable_encode ( string $str ) Returns a quoted printable string created according to » RFC2045, section 6.7. This function is similar to imap_8bit(), except this one does not require the IMAP module to work. Parameters: str The input string. Returns:

quoted_printable_decode

(PHP 4, PHP 5, PHP 7) Convert a quoted-printable string to an 8 bit string string quoted_printable_decode ( string $str ) This function returns an 8-bit binary string corresponding to the decoded quoted printable string (according to » RFC2045, section 6.7, not » RFC2821, section 4.5.2, so additional periods are not stripped from the beginning of line). This function is similar to imap_qprint(), except this one does not re

printf

(PHP 4, PHP 5, PHP 7) Output a formatted string int printf ( string $format [, mixed $args [, mixed $... ]] ) Produces output according to format. Parameters: format See sprintf() for a description of format. args See sprintf() for a description of format. ... See sprintf() for a description of format

print

(PHP 4, PHP 5, PHP 7) Output a string int print ( string $arg ) Outputs arg. print is not actually a real function (it is a language construct) so you are not required to use parentheses with its argument list. Parameters: arg The input data. Returns: Returns 1, always. Notes: Because this is a la