Ho questi dati in una stringa..
{
"data": [
{
"1": "link",
"2": "dati",
"category": "mia",
"id": "42234234234423"
},
{
"1": "link",
"2": "dati",
"category": "mia",
"id": "42234234234423"
},
Come faccio ad estrarre "link" quello che c'è dentro a:
"1": "link",
Come posso fare??
Non so come fare il pattern.. Mi date una mano ?codice:$subject = ""; $pattern = ''; preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3); print_r($matches);![]()