note 80344 added to function.sprintf

From: Date: Thu, 10 Jan 2008 21:22:18 +0000
Subject: note 80344 added to function.sprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-135015@lists.php.net to get a copy of this message
In the last example of Example#6, there is an error regarding the output. printf("[%10.10s]\n", $t); // left-justification but with a cutoff of 10 characters This outputs right-justified. In order to output left-justified: printf("[%-10.10s]\n", $t); ---- Server IP: 208.69.120.35 Probable Submitter: 209.107.233.6 ---- Manual Page -- http://www.php.net/manual/en/function.sprintf.php Edit -- https://master.php.net/note/edit/80344 Del: integrated -- https://master.php.net/note/delete/80344/integrated Del: useless -- https://master.php.net/note/delete/80344/useless Del: bad code -- https://master.php.net/note/delete/80344/bad+code Del: spam -- https://master.php.net/note/delete/80344/spam Del: non-english -- https://master.php.net/note/delete/80344/non-english Del: in docs -- https://master.php.net/note/delete/80344/in+docs Del: other reasons-- https://master.php.net/note/delete/80344 Reject -- https://master.php.net/note/reject/80344 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135015) next »