Doc #78165 [Opn->Fbk]: Incorrect example

From: Date: Fri, 14 Jun 2019 17:09:57 +0000
Subject: Doc #78165 [Opn->Fbk]: Incorrect example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16751@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78165&edit=1 ID: 78165 Updated by: girgias@php.net Reported by: cfesting at yahoo dot com Summary: Incorrect example -Status: Open +Status: Feedback Type: Documentation Problem -Package: Documentation problem +Package: Strings related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The output is [many monke] which seems left-justified to me. See https://3v4l.org/68s7r Previous Comments: ------------------------------------------------------------------------ [2019-06-14 17:02:32] cfesting at yahoo dot com Description: ------------ --- From manual page: https://php.net/function.printf --- In example #2: printf("[%10.10s]\n", $t); // left-justification but with a cutoff of 10 characters It is my belief that the above will be right-justified, not left. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78165&edit=1

« previous php.doc.bugs (#16751) next »