I know that some array functions, such as array_rand, work for objects while you put (array) in front of the object. In this case, I am trying to get the identifier
$this->id = end($this->log->r);
returns all elements of the last element. I just want to know what the key of this element is. This is a JSON_decoded object.
source share