well, if you're confused so am i, so to make it better for you to understand what i'd like to do this is what i think
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://google.com/a-good-coffee');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
//sleep(6);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'blablabla123abc');
echo $func = curl_exec($ch);
let's say $func will return this
{ "id": "great_coffee", "object": "amazing", "billing_details": google }
what i do want to achieve is this
i want $func only to read the text in the second " "
which is "great_coffee", the result will randomize each time i curl the same page (lets say it's gonna be a_good_life next time i curl)
so i dont want to get a specific value, ?
*Is this possible ? and how could i do it if it is ?
Thank you for your responses, but if i use json_decode i will get the id yes, but i will still get some blank lines