This is what you are looking for number_format
echo number_format($value['report_total_cost_usd'], 2, '.', ','); // ex: 1,234,456.00
Output
1,234,456.00
need some dedication towards the work, and some knowledge how to read manuals..
More Related Contents:
- how to select only one value sql
- How to create codeigniter dynamic menu from single table
- CodeIgniter – foreach loop
- PHP – Change value y,n in database [closed]
- How to insert multiple rows from array using CodeIgniter framework?
- strange character encoding of stored data , old script is showing them fine new one doesn’t
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- Find total number of results in mySQL query with offset+limit
- How can I Use Prepared Statements in CodeIgniter
- Grouping WHERE clauses in Codeigniter
- What are the differences between backtick and single quote? Can I use IF statement in a query as above?
- How to create Codeigniter language files from database?
- Trying to get property of non-object – CodeIgniter
- Codeigniter Transactions
- Inserting NOW() into Database with CodeIgniter’s Active Record
- How to select rows where column value IS NOT NULL using CodeIgniter’s ActiveRecord?
- Escaping SQL queries in Codeigniter
- Notice: undifined index, but why?
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Save PHP array to MySQL?
- PHP PDO prepared statement — MySQL LIKE query
- How can I use mysqli_fetch_array() twice?
- Easy way to export a SQL table without access to the server or phpMyADMIN
- using nulls in a mysqli prepared statement
- How can I count the numbers of rows that a MySQL query returned?
- How to run the PHP script at scheduled time
- How to handle error for duplicate entries?
- MySql PHP select count of distinct values from comma separated data (tags)
- Using Prepared Statement, how I return the id of the inserted row?
- Replacing \r\n with PHP