sprintf

<?php
$number = 9;
$str = "Beijing";
$ben = "pikawa";

$txt = sprintf("There are %u million bicycles in %shaaaa %s",$number,$str, $ben);
echo $txt;

There are 9 million bicycles in Beijinghaaaa pikawa

Komentarze wyłączone