Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Help with number_format

$
0
0

I am getting the following error message with the below code:

Warning: number_format() expects parameter 1 to be double, object given in ...

<?php
        $price=$preownedinfo->Price;    
        $formatted_price = number_format($price, 2);
    echo $formatted_price;
?>

Can you tell me what might be the issue.  Thanks.


Viewing all articles
Browse latest Browse all 13200

Latest Images

Trending Articles



Latest Images