Menu
Hello
Im posting data to a online CRM DB.
I need to be able to pull the unique ID thats assigned to each submit.
(if i were using mysql it would be mysql_insert_id())
The string im receiving back from the post looks like this:
{“oid”:2654,”data”:”Saved oid 2654″,”result”:true}
So my questions is how do i extract the oid number (in this example its 2654) after firstly making sure result: true?
Im no good at this kind preg matching stuff.
Cheers for your time.