Changes in v*prinf(), NULL Length Arguments, and the implode() Function
Learn about the updated print methods and other features in PHP 8.
Dealing with v*printf()
changes
The v*printf()
family of functions is a subset of the printf()
family of functions that includes vprintf()
, vfprintf()
, and vsprintf()
. The difference between this subset and the main family is that the v*printf()
functions are designed to accept an array as an argument rather than an unlimited series of arguments. Here is a simple example that illustrates the difference:
Get hands-on with 1200+ tech skills courses.