I need to pull the date from the object below and nothing ($obj->date
, $obj['date']
, etc.) I've tried has worked. I'm not sure if what I'm searching for isn't correct, but I can't find anything in searches as to how to grab "2015-08-12 15:47:04".
Can someone tell me how to get it and describe what everything is called? Is it correct to say that I need to get the value of the first key from an object?
object(DateTime)#630 (3) {
["date"]=>
string(19) "2015-08-12 15:47:04"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "UTC"
}