I am getting below response from curl.
$response = curl_exec($ch);
echo $response;
{"notification":[{"text":"message 1","level":"one"}]}
I want to print "message 1"
Thanks in advance
I am getting below response from curl.
$response = curl_exec($ch);
echo $response;
{"notification":[{"text":"message 1","level":"one"}]}
I want to print "message 1"
Thanks in advance
I think you can do it like this:
echo $response["notification"]["text"];