I am retriving following data from the database.When I do print_r, it gives me follwing result.
Array ( [0] => stdClass Object ( [params] => {"size":"980|*|485|*|1","responsive":"1|*|0","align":"normal","autoplay":"1|*|6000" } ) )
Now I want to change the value of autoplay(which is last in this array) in it.How can I do that with the update query ?
NOTE: Field name is param in database and table name is xyz.
json_decode($array[0]->params)would get you the object that would allow you to modify it.