this is my data ,After Json_encode()
Array
(
[{"customerId":"1","customer_name":"Jon_doe","amount":"12312312","billcode":"b1231","billname":"cashbilname","billcategorycode":"1234","billcategory":"utility","month":"May","year":"2015","txcode":"10","stationid":"152","station":"Coroom","operatorcode":"1200","operator":"jame","terminal":"ter12312","txdate":"12\/2\/2015","txtime":"12:21:22_PM"}]
=>
)
now i want to decode it back ,by applying json_decode() it gives the following error
json_decode() expects parameter 1 to be string, array given
any idea sugestion what to do ?
json_decode($array[0])json_encodeshould give you a string in the first place, not the Array you showed, so there's definitely a problem there. Show your code and we might be able to help