I'm relatively new to PHP and I'm working in this PHP project. I'm looping through an array of SimpleXMLElement objects that look like this:
SimpleXMLElement
{
RunID : "321",
Description: "Something Here"
}
Note that this array came from a SOAP call that returns XML.
All I want to do is rename the properties RunID and Description to something else and add each element to a new array. Some help would be greatly appreciated.
If its not possible to rename them, then can I convert them to another object type or something. Like I could do with an anonymous type in C#. I'm using PHP 5.6