note 107854 added to function.sprintf
| From: | eslindsey at gmail dot com | Date: | Sat, 10 Mar 2012 06:49:16 +0000 |
| Subject: | note 107854 added to function.sprintf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186571@lists.php.net to get a copy of this message | ||
@andrejsstepanovs at gmail dot com:
You should just use PHP's built-in error suppression; that's exactly the kind of situation
it's there for:
$str = @sprintf('%s %s %s', 'too few parameters');
----
Server IP: 69.147.83.197
Probable Submitter: 173.165.219.69
----
Manual Page -- http://www.php.net/manual/en/function.sprintf.php
Edit -- https://master.php.net/note/edit/107854
Del: integrated -- https://master.php.net/note/delete/107854/integrated
Del: useless -- https://master.php.net/note/delete/107854/useless
Del: bad code -- https://master.php.net/note/delete/107854/bad+code
Del: spam -- https://master.php.net/note/delete/107854/spam
Del: non-english -- https://master.php.net/note/delete/107854/non-english
Del: in docs -- https://master.php.net/note/delete/107854/in+docs
Del: other reasons-- https://master.php.net/note/delete/107854
Reject -- https://master.php.net/note/reject/107854
Search -- https://master.php.net/manage/user-notes.php