I have the following array $data
. n
and 0
are identical, it's just the way the data is returned. I need to determine the max and min values for the id value, it looks like the id values are stored as strings, how is this achieved?
Array
(
[0] => stdClass Object
(
[n] => artefact[10.3]{"id": "1", "name": "001", "type": "Artefact"}
[0] => artefact[10.3]{"id": "1", "name": "001", "type": "Artefact"}
)
[1] => stdClass Object
(
[n] => artefact[10.4]{"id": "2", "name": "002", "type": "Artefact"}
[0] => artefact[10.4]{"id": "2", "name": "002", "type": "Artefact"}
)
[2] => stdClass Object
(
[n] => artefact[10.5]{"id": "3", "name": "003", "type": "Artefact"}
[0] => artefact[10.5]{"id": "3", "name": "003", "type": "Artefact"}
)
)