輸出格式化字串

printf

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

printf輸出格式化字串

說明

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

依據 format 格式參數產生輸出。

參數

format

format 描述資訊,請參見 sprintf()

args

...

返回值

返回輸出字串的長度。

參見

Leave a Reply

Your email address will not be published. Required fields are marked *