number_format() - php5.3 -gelöst

Coderecke
Post Reply
Message
Author
User avatar
rebirther
Admin
Posts: 2868
Joined: 19.12.2005, 00:59
Location: Germany

number_format() - php5.3 -gelöst

#1 Post by rebirther » 23.07.2010, 18:59

Code: Select all

number_format(floatval($row['credits']),"",',', '.'),
number_format($row['credits'],"",',', '.'),
Beide Sachen klappen unter php4 und php 5.2.11, aber nicht in 5.3, bringt Fehler:

Code: Select all

Warning: number_format() expects parameter 2 to be long
Lösung:

Code: Select all

number_format(floatval($row['credits']),"0",',', '.'),
number_format($row['credits'],"",',', '.'),

Post Reply