printf
printf — Output a formatted string.Description
printf( string $format,Produces output according to format.
mixed ...$values ): int
Parameters
format
The format string is composed of zero or more directives: ordinary characters (excluding %) that are copied directly to the result and conversion specifications, each of which results in fetching its own parameter.
A conversion specification follows this prototype: %[argnum$][flags][width][.precision]specifier.
Return Values
Returns the length of the outputted string.More information about printf on official PHP documentation site
printf - Popular snippets
- PHP 8.1 / printf phpversion printf phpversion
last run:
2025-01-30 19:49:54
1142
- PHP 8.1 / printf phpversion printf phpversion
last run:
2023-07-10 13:49:23
661
- PHP 8.2 / printf
last run:
2024-12-04 19:14:01
316
- / printf phpversion
last run:
2025-01-31 15:45:17
199
- PHP 7.4 / printf phpversion
last run:
2025-01-31 17:55:46
199
- PHP 8.1 / printf phpversion
last run:
2025-01-31 17:55:47
196
- PHP 8.0 / printf phpversion
last run:
2025-01-31 17:55:47
195
- PHP 8.2 / printf phpversion
last run:
2025-01-31 17:55:48
177
printf - New snippets
-
PHP 8.4 / MySQL 8.0 printf
added at:
2025-04-14 12:16:09
1
-
PHP 8.4 / MySQL 8.0 printf
added at:
2025-04-14 12:15:52
1
-
PHP 8.4 / MySQL 8.0 printf
added at:
2025-04-14 12:15:34
1
-
PHP 8.4 / MySQL 8.0 printf phpversion printf phpversion printf phpversion printf phpversion printf phpversion
added at:
2025-04-13 15:54:26
1
-
PHP 8.4 / MySQL 8.0 printf phpversion
added at:
2025-04-12 07:27:01
1
-
PHP 8.2 / MariaDB 11.4 printf
added at:
2025-04-11 12:27:02
1