I just don't understand what the ' is for. When you remove it, it treats the string literally. why is there only one though?PHP Code:<?php
$money = 30;
$pet = "Kitten";
$new = sprintf("It costs $%03.2f for a %s.\n",$money,$pet);
$new2 = sprintf("%[B][B][COLOR="Red"]'[/COLOR][/B][/B].-20s%3.2f",$pet,$money);
echo $new;
echo $new2;
?>



Reply With Quote


Bookmarks