- printf: documentation ( source)
<?php
$tests = array(
"1...1",
"2...2",
"10...10",
"(1.).(.1)",
"1. . .1",
"5.32..7",
"3..(5.67)",
"3. . 5.67",
"3.14 . 1.41"
);
foreach($tests as $test)
{
printf("%-12s = ", $test);
eval("echo $test;");
echo "\n";
}