Introduction
In this article I describe the PHP string functions fprint, hebrew and hebrevc . To learn some other math functions, go to:
- String Functions in PHP: Part1
- String Functions in PHP:Part2
- String Functions in PHP:Part3
- String Functions in PHP:Part4
PHP fprint() Function
The PHP fprint function writes a string to a stream.
Syntax
| fprint(stream,format,arg1,arg2,arg2,arg++) |
Parameter in fprint Function
The parameters of the fprint function are:
| Parameter | Description |
| stream | It specifies where to write/output the string. |
| format | It specifies the string and how to format the variables in it. |
| arg1 | It specifies the argument to be inserted at the first % (sign) in the format string. |
| arg2 | It specifies the argument to be inserted at the second % (sign) in the format string. |
| arg++ | It specifies the argument to be inserted at the third, fourth, etc. %-sign in the format string. |
Example
An example of the fprint function is:
<?php
$str = "MCN";
$number = 101;
$file = fopen("test.txt","w");



Join the conversation! Your thoughts help the community grow.