Php sprintf mengembalikan string yang diformat

<?php
$num = 5;
$location = 'tree';

$format = 'There are %d monkeys in the %s';
echo sprintf($format, $num, $location);
?>
SAMER SAEID