• PHP Video Tutorials

PHP - Function printf



Syntax

int printf ( string $format [, mixed $args [, mixed $... ]] )

Definition and Usage

It returns output a formatted string

Return Values

It returns the length of the output string.

Parameters

Sr.No Parameters & Description
1

format

It contains the information about string format

Example

Try out the following example

<?php
   printf("Tutorials point simply easy learning");
?>

This will produce following result −

Tutorials point simply easy learning
php_function_reference.htm
Advertisements