My sql cell contains
{"thumbnail":{"url":"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDQigGygNrDSie20W7XnoHFM3vcKnZthRrxkOU2AxfnM_1p6J7bkmVTlEssDol7CGi15QMdiiRdF4C1W-EgCgKVhWr7uhLx58cP52X2PZNEbRsORlijMU7r1tN5V0fUdjaoEez91b8ISgzYeutpr9J42qIDIJOoQp1WFGUN4i6rpEIb8uwK_O4P0BwEj1g/s72-w384-h511-c/NavaTelanganaClipping.jpeg","height":"72","width":"72"},"enclosures":[]}
I want to get only image url ,, it may either jpg or png
I did
<code>$str = $row["attributes"];
$rem = array(
'enclosures',
'[',
'thumbnail',
':]}',
'"',
'{',
'height',
'width',
'}',
':',
',',
'url',
'72',
'https'
);
</code>
<code>$str = $row["attributes"];
$rem = array(
'enclosures',
'[',
'thumbnail',
':]}',
'"',
'{',
'height',
'width',
'}',
':',
',',
'url',
'72',
'https'
);
</code>
$str = $row["attributes"];
$rem = array(
'enclosures',
'[',
'thumbnail',
':]}',
'"',
'{',
'height',
'width',
'}',
':',
',',
'url',
'72',
'https'
);
$str = str_replace($rem, “”, $str);
echo “<img src=””.$str.” />”;