i am having problems in exploding array and working with it. i have array of serial numbers for books categorized as read and unread books. when ever there is book that is read i place read in array after that serial number as follow.
array(
"1234567890","read",
"2345678901","read",
"2345678901",
"2345678901",
"1234561231",
"3333333333","read",
"3333333333"
)
status is unread for all others and in out put i want to loop through the array give me this result.
1234567890: 0 unread, 1 read
2345678901: 2 unread, 1 read
1234561231: 1 unread, 0 read
3333333333: 1 unread, 1 read
any help will be appreciated .
Aucun commentaire:
Enregistrer un commentaire