PHP fprint() Function4 Sept 2024 | 2 min read PHP fprint() function is used to write a formatted string to a stream. In another words we can say that this function format string to a specified output stream( file or database). Syntax:
Example 1Output: 43 Example 2Output: %b = 111010110111100110100010101 %c = 2 %d = 123456789 %d = -123456789 %e = 1.234568e+8 %E = 1.234568E+8 Example 3Output: %u = 123456789 %u = 4171510507 %f = 123456789.000000 %F = 123456789.000000 %g = 1.23457e+8 %G = 1.23457E+8 %o = 726746425 Example 4Output: %s = 123456789 %x = 75bcd15 %X = 75BCD15 %+d = +123456789 %+d = -123456789 Next TopicPHP String |
PHP Function The function is predefine string function of PHP. It is used to search a string for any of the specified characters or search a string for any of a set of character. Note: This function is case-sensitive. Syntax: strpbrk(string,charlist); Parameter Description Required/Optional string Specify the string...
1 min read
PHP String Function The function is a built-in function of PHP which is used to convert an 8-bit string to a quoted-printable string. This function is opposite to the quoted_printable_decode(), and similar to the imap_8bit() function. It returns a quoted printable string that is created...
1 min read
PHP Function PHP function is used to splits a string into smaller parts or chunks. The function does not alter the original string. Syntax: chunk_split(string,length,end) Parameter Description Required/Optional string String to split Required Length Specify the length of the chunks. Default is 76 Optional end Specify what to place at the end each chunk. Optional Example 1 <?php $str = "Hello...
1 min read
PHP String function The function is an in-built function of PHP. It is a case-sensitive function which finds the first occurrence of a string. The is mainly used to search the first occurrence of a string inside another string and displays some part of...
3 min read
PHP soundex() function PHP soundex() function is used to calculate the soundex key of a string. Its key has property and can be used to search in database where pronunciation is known but not the spelling. Soundex function is described by Donald Knuth. Syntax: soundex(string); Parameter Description Required/Optional String Specify the string to check Required. Example 1 <?php $str...
1 min read
PHP Function The function is used to remove whitespace or other predefined character from the right end of a string. Syntax: chop(string,charlist); Note: function is different than the Perl function function, which is used to remove the last character in the string. Parameter Description Required/Optional string the string to be check Required charlist charlist...
1 min read
PHP Function The is predefine function of PHP. It is used to remove backslashes and clean up data retrieved from a database or from an HTML form. It returns a string with backslashes stripped off. This function is important while we need to remove the...
1 min read
PHP function PHP function is predefined function. It is used to calculate the metaphone key of a string. It is useful to text search and text matching application. It is phonetic algorithm developed by Lawrence Philips. The algorithm produces variable length keys as output. Syntax: string metaphone (...
1 min read
PHP Function The is predefine string function of PHP. It is used to compare two strings. This function is binary-safe, case-sensitive and similar to strcmp() function but strcmp() have no the length parameter. The strncmp () function is often used in programming and web development...
1 min read
PHP String Function The is a built-in function of PHP. It counts the number of times a substring occurs in the given string. The is a case-sensitive function, which means it treats uppercase and lowercase alphabets differently. For example - A substring "cha" is not...
3 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India