Title: how To count array?
Last modified: August 21, 2016

---

# how To count array?

 *  [Syaiful](https://wordpress.org/support/users/syaiful6/)
 * (@syaiful6)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/how-to-count-array/)
 * I just playing with array with contain number for price and so on, no I want 
   to count that array element. I meant, I want to know total sales. the array look
   like this if I encode that.
    {“1″:33750,”2”:6000, “3”:80000} the key will increase
   each time sales made. If the array look like that, how I count that friends? 
   I want the value like this $a = 33750 + 6000 + 80000..and so on

The topic ‘how To count array?’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Syaiful](https://wordpress.org/support/users/syaiful6/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/how-to-count-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
