<?php
$fruits = array(1, 'banana',1, 'apples', 3, 'oranges', 2, 'peaches');
vprintf("I have %d %s, %d %s, %d %s and %d %s.", $fruits);
?>
Output:
I have 1 banana, 1 apples, 3 oranges and 2 peaches.
| Copyright © 2001-2005 The PHP Group All rights reserved. |
This unofficial mirror is operated at:
The Server Pages Last updated: Thu May 19 17:35:34 2005 CDT |