0

I have a code which returns the following object:

{"ok":true,"result":{"file_id":"AwADBAADrAADmmT8BE_FGiduk6tZAg","file_size":106562,"file_path":"voice\/file_1.oga"}}

I want to access the last part (i.e voice\/file_1.oga) and store it in a variable called $path.

I have tried json_decode() but I believe the object is not a JSON as it does not have square brackets. Help is appreciated!

Ali Zakeri
  • 57
  • 10

0 Answers0