Re: version differences

From: Date: Tue, 14 May 2002 09:35:51 +0000
Subject: Re: version differences
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97513@lists.php.net to get a copy of this message
In article <BCEJJDCJDPNBLGKFPAOBMEFPCCAA.baldey_uk@SoftHome.net>, baldey_uk@SoftHome.net says... > 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 I could tell you, but I'd have to then kill you. http://www.php.net/sprintf will tell you what versions it is valid for. The docs show the history of all calls. Hint - check floatval -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#97513) next »