2021年4月7日星期三

How do I trim this CRC line to get a jpg filename or URL only in 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

https://stackoverflow.com/questions/66996401/how-do-i-trim-this-crc-line-to-get-a-jpg-filename-or-url-only-in-php April 08, 2021 at 10:06AM

没有评论:

发表评论