
Oct 16th, 2007, 06:20
|
 |
SuperMember
|
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Re: What is sprintf
Try this:
- PHP: Select all
<?php $format = 'The %2$s contains %1$d monkeys'; echo(sprintf($format, $num, $location)); // OR printf($format, $num, $location); ?>
And check out the documentation here.
|