RE: [PHP] version differences
| From: | Martin Towell | Date: | Tue, 14 May 2002 01:10:21 +0000 |
| Subject: | RE: [PHP] version differences | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97447@lists.php.net to get a copy of this message | ||
a little look at: http://www.php.net/manual/en/function.sprintf.php
shows: (PHP 3, PHP 4 >= 4.0.0)
and a look at: http://www.php.net/manual/en/function.floatval.php
shows: (PHP 4 >= 4.2.0)
So that's where your problem is
Martin
-----Original Message-----
From: baldey_uk [mailto:baldey_uk@SoftHome.net]
Sent: Tuesday, May 14, 2002 9:34 AM
To: Php-General
Subject: [PHP] version differences
Hi all,
Can anyone tell me whether or not the sprintf function existed in php 4.12?
I have the following line:
$order_value=sprintf('%.2f', floatval($quantity)*7.0);
Which works at home on my version 4.2 of php but whne i upload to the server
running 4.12 the script just seems to stop there and go no further? Any
help, advice or pointing to relevant docs would be greatly appreciated.
Cheers From
baldey_uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php