function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DG-AngelDG-Angel 

Extract variable values from sf:LastModifiedDate...sf:LastModifiedDate

Hi
 
 I am getting this [any] object with lots of fields like this
 
["any"]=>
      string(67) "<sf:LastModifiedDate>2007-06-01T14:23:18.000Z</sf:LastModifiedDate>"

 
how do I extract the LastModifiedDate from here also if there are two tags in [any] object like this
 
["any"]=>
      string(67) "<sf:LastModifiedDate>2007-06-01T14:23:18.000Z</sf:LastModifiedDate><sf:Variable>2007-06-01T14:23:18.000Z</sf:variable>"

 
how do i extract both LastModifiedDate and Variable from this object here in php
 
Please let me know if someone has done this before. I need to extract these variable vaues from this [any]. These variables are result of my query to CASE object.
 
The result looks like this
object(stdClass)#15 (4) {
  ["done"]=>
  bool(true)
  ["queryLocator"]=>
  NULL
  ["records"]=>
  array(1) {
    [0]=>
    object(stdClass)#16 (3) {
      ["type"]=>
      string(4) "Case"
      ["Id"]=>
      NULL
      ["any"]=>
      string(67) "<sf:LastModifiedDate>2007-06-01T14:23:18.000Z</sf:LastModifiedDate>"
    }
  }
 
 
Thanks
DG