string sprintf ( string $format [, mixed $args [, mixed $... ]] )
Return a formatted string
Returns a string produced according to the formatting string format.
<?php
$num = 5;
$location = 'tree';
$format = 'There are %d monkeys in the %s';
echo sprintf($format, $num, $location);
?>
4.0.6 Support for argument numbering/swapping was added
VideoTutorial 2 del Taller Práctico de PHP y MySQL
0 Comment:
Post a Comment