How do I trim this CRC line to get a jpg filename or URL only in PHP

  dropbox, javascript, php

i have this string like below:

{"crc_file_id":"s1651234q2036773u396340d338552t1616900170273","size":"39216","mime_type":"image/jpeg","upload_path":"/RIM","filename":"RIMs1651234q2036773u396340d338552t1616900170273.jpg","dbx_hash":"f26d920f3021d3dd11a5c1b3953e636fb3e91dfe282699483d894c3cd08540c6","crc_file_transfer_type":"dropbox","link":"https://dl.dropboxusercontent.com/s/1q978ymligfzhbr/RIMs1651234q2036773u396340d338552t1616900170273.jpg"}

How i can trim the line like this:

  1. RIMs1651234q2036773u396340d338552t1616900170273.jpg
    or
  2. https://dl.dropboxusercontent.com/s/1q978ymligfzhbr/RIMs1651234q2036773u396340d338552t1616900170273.jpg

Thank You

Source: Ask PHP

LEAVE A COMMENT