note 27841 added to function.printf
| From: | eugenew at starhub dot net dot sg | Date: | Fri, 20 Dec 2002 15:13:40 +0000 |
| Subject: | note 27841 added to function.printf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41155@lists.php.net to get a copy of this message | ||
If anyone is looking for writing a quine using printf(),
this is my example:
<?php $f='<?php $f=%c%s%c; printf($f,39,$f,39); ?>'; printf($f,39,$f,39); ?>
This also helps those who are new to printf() see one way of using the 'mixed args' part,
rather than just a single argument as in most examples I've seen.
--
http://www.php.net/manual/en/function.printf.php
http://master.php.net/manage/user-notes.php?action=edit+27841
http://master.php.net/manage/user-notes.php?action=delete+27841
http://master.php.net/manage/user-notes.php?action=reject+27841