Manipulating php string

Asked

Viewed 16 times

0

I wanted to be able to access some information of this string:

{"op":"&","c":[{"type":"completion","cm":1227,"e":1}],"showc":[true]}

it looks like an array, but it prints as a string, as it would access cm:1227?

someone can help?

  • is a json, from a json_decode() that it becomes an object

  • Thank you, I turned it into an object, as I would now, to access the information?

  • echo $var->op use the property names they are on the left side of the colon.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.