fprintf

PHP 5, PHP 7, PHP 8
fprintf - Write a formatted string to a stream
Manual
Code Examples

Example #1 fprintf: formatting currency

PHP Version:

Example #2 fprintf: zero-padded integers

PHP Version:


Function fprintf:

Strings Functions

Most used PHP functions