Source Code:
(back to article)
<?php $name = 'John'; $age = 25; $str = sprintf('My name is %s and I am %d years old', $name, $age); echo $str; ?>
Result:
Report an issue