| Revision 19792,
341 bytes
checked in by Seasoft, 16 years ago
(diff) |
|
#744(PHP4 互換用途ソースを将来的に切り捨てやすい仕組みづくり)
|
| Line | |
|---|
| 1 | --TEST--
|
|---|
| 2 | Function -- vprintf
|
|---|
| 3 | --SKIPIF--
|
|---|
| 4 | <?php if (function_exists('vprintf')) { echo 'skip'; } ?>
|
|---|
| 5 | --FILE--
|
|---|
| 6 | <?php
|
|---|
| 7 | require_once 'PHP/Compat.php';
|
|---|
| 8 | PHP_Compat::loadFunction('vprintf');
|
|---|
| 9 |
|
|---|
| 10 | $values = array (2, 'car');
|
|---|
| 11 |
|
|---|
| 12 | $format = "There are %d monkeys in the %s";
|
|---|
| 13 | vprintf($format, $values);
|
|---|
| 14 | ?>
|
|---|
| 15 | --EXPECT--
|
|---|
| 16 | There are 2 monkeys in the car |
|---|
Note: See
TracBrowser
for help on using the repository browser.