Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

RE: [PHP] 2 decimal places From: Boget, Chris (Chris.Boget <email protected>)
Date: 09/25/01

> Yeah, but what if they don't JUST want to print it...

Umm, have you read the documentation on either of
the functions? They both return a string; they don't
send anything to standard out (like echo or print does).

$myString = printf();
$myString = sprintf();

echo $myString;

Chris