Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter number format function

// THIS METHOD CONVERT PRICE INTO 0.00 FORMAT
function format($price = "") { 
      $format_price = number_format($price, 2, '.', '');
      return $format_price;  
 }
 
PREVIOUS NEXT
Tagged: #codeigniter #number #format #function
ADD COMMENT
Topic
Name
3+4 =