Skip to main content

sprintf

Function sprintf 

Source
pub fn sprintf(format: &[u8], values: &[Arg<'_>]) -> Result<Vec<u8>, Error>
Expand description

PHP sprintf($format, ...$values): every conversion (%s %d %u %c %e %E %f %F %g %G %h %H %o %x %X %b %%), flags (-, +, space or 0 padding, 'c custom padding), width, precision, * and n$ argument numbers, with PHP’s errors (ValueError, ArgumentCountError).