wordwrap

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Wraps a string to a given number of characters string wordwrap ( string $str [, int $width = 75 [, string $break = "\n" [, bool $cut = false ]]] ) Wraps a string to a given number of characters using a string break character. Parameters: str The input string. width The number of characters at which t

vsprintf

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Return a formatted string string vsprintf ( string $format, array $args ) Operates as sprintf() but accepts an array of arguments, rather than a variable number of arguments. Parameters: format See sprintf() for a description of format. args See sprintf() for a description of format.

vprintf

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Output a formatted string int vprintf ( string $format, array $args ) Display array values as a formatted string according to format (which is described in the documentation for sprintf()). Operates as printf() but accepts an array of arguments, rather than a variable number of arguments. Parameters: format See sprintf() for a descripti

vfprintf

(PHP 5, PHP 7) Write a formatted string to a stream int vfprintf ( resource $handle, string $format, array $args ) Write a string produced according to format to the stream resource specified by handle. Operates as fprintf() but accepts an array of arguments, rather than a variable number of arguments. Parameters: handle Write a string produced according to format to th

ucwords

(PHP 4, PHP 5, PHP 7) Uppercase the first character of each word in a string string ucwords ( string $str [, string $delimiters = " \t\r\n\f\v" ] ) Returns a string with the first character of each word in str capitalized, if that character is alphabetic. The definition of a word is any string of characters that is immediately after any character listed in the delimiters parameter (By default these are: space, form-feed,

ucfirst

(PHP 4, PHP 5, PHP 7) Make a string's first character uppercase string ucfirst ( string $str ) Returns a string with the first character of str capitalized, if that character is alphabetic. Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted. Parameters: str The input s

trim

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

substr

(PHP 4, PHP 5, PHP 7) Return part of a string string substr ( string $string, int $start [, int $length ] ) Returns the portion of string specified by the start and length parameters. Parameters: string The input string. Must be one character or longer. start If start is non-negative, the returned string will start at the start'th posit

substr_replace

(PHP 4, PHP 5, PHP 7) Replace text within a portion of a string mixed substr_replace ( mixed $string, mixed $replacement, mixed $start [, mixed $length ] ) substr_replace() replaces a copy of string delimited by the start and (optionally) length parameters with the string given in replacement. Parameters: string The input string. An array of strings can be provided, in

substr_count

(PHP 4, PHP 5, PHP 7) Count the number of substring occurrences int substr_count ( string $haystack, string $needle [, int $offset = 0 [, int $length ]] ) substr_count() returns the number of times the needle substring occurs in the haystack string. Please note that needle is case sensitive. Note: This function doesn't count overlapped substrings. See the example below! Parameters: