printf

(PHP 4, PHP 5, PHP 7, PHP 8)

printf輸出格式化字符串

說明

printf(string $format, mixed $args = ?, mixed $... = ?): int

依據(jù) format 格式參數(shù)產(chǎn)生輸出。

參數(shù)

format

format 描述信息,請(qǐng)參見 sprintf()。

args

...

返回值

返回輸出字符串的長(zhǎng)度。

參見