PHP fprint() FunctionPHP 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 |
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