I have the following array containing one or more objects:
array:1 [▼
0 => ApiS7File {#484 ▼
+id: 19
+type: "file"
+z: "e1a4f81f.f90428"
+name: ""
+filename: "example/example.txt"
}
]
If the user suplies me with an options array
$options = ['filename' => 'hello', 'name' => 'thanks']
I want the array object to be overwritten using the user suplied values:
array:1 [▼
0 => ApiS7File {#484 ▼
+id: 19
+type: "file"
+z: "e1a4f81f.f90428"
+name: "thanks"
+filename: "hello"
}
]
How can I achieve this?