i start reading oreilly learning php 5 and stumble to this function printf() i read it and i dont understand what’s this function does i know that it format strings but the arguments that it pass like this one … i dont get it can anyone explain it please…oh btw merryxmas every1:
$hamburger = 4.95;
$milkshake = 1.95;
$cola = .85;
$food = 2 * $hamburger + $milkshake + $cola;
$tax = $food * .075;
$tip = $food * .16;
printf("%1d %9s at \$%.2f each: \$%.2f
", 2, 'Hamburger', $hamburger, 2 * $hamburger);
printf("%1d %9s at \$%.2f each: \$%.2f
", 1, 'Milkshake', $milkshake, $milkshake);