Forum Discussion

NeverTooOldToLe's avatar
NeverTooOldToLe
New Contributor III
8 years ago
Solved

Extract object from array

I’ve got an array with one object in it, similar to this: [ { “property” : “value” } ] I’d like to remove it from the array and be left with an object: { “property” : “value” } I’ve been play...
  • del's avatar
    8 years ago

    You should be able to just use the array index value of [0] to extract the object.
    ex. $myArray[0]