![]() |
formatting all int values of an array
would this be the best way to do it, or do you know a better way to do it?
PHP Code:
|
What do you want to have happen when...
Code:
$value = 1000.01; |
1,000,000 or whatever the vb_number_format() is set at via the $vboptions.
|
Code:
foreach($array AS $key => $value) |
the only problem with that is that the $value could be 1, 5, 1million or 1billion, also in the array theirs also string values which don't need to be number formatted.
|
Code:
foreach($array AS $key => $value) |
ahhh is_numeric was the function i was looking for, thank you calorie :)
|
All times are GMT. The time now is 11:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|