View Single Post
  #2 (permalink)  
Old Oct 16th, 2007, 06:20
c010depunkk's Avatar
c010depunkk c010depunkk is offline
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
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.
Reply With Quote