RE: [PHP] printf....
| From: | Dan Joseph | Date: | Wed, 01 Oct 2003 19:58:10 +0000 |
| Subject: | RE: [PHP] printf.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164615@lists.php.net to get a copy of this message | ||
OH! Heh... learn something new everyday.. Thank you!
-Dan Joseph
> -----Original Message-----
> From: Mike Migurski [mailto:mike@saturn5.com]
> Sent: Wednesday, October 01, 2003 3:49 PM
> To: Dan Joseph
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] printf....
>
>
> >Warning: printf(): too few arguments in
> >/home/sites/site8/web/index_test.php on line 34
> >
> >I cannot for the life of me figure out what the problem is. I've looked
> >thru archives, examples, and pages of a book all about printf, and this
> >just doesn't add up to me.. Anyone see the problem?
>
> To print a literal '%' (as in '100%'), you need to escape it with another
> '%' (as in '100%%').
>
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca http://mike.teczno.com/contact.html
>