1

When I dump the result ($items) this is the "tags" object:

["tags"]=> object(stdClass)#20 (1) { 
    ["number::[Device]."]=> string(3) "381" 
}

I need that value "381" but how can I reference it?

this is the array i'm creating to send to the database:

  foreach ($items as $item) {
            $arg = array (
                @$item->id,
                **@$item->tags->{Number::[Device].}**,
                @$item->presentation->name,
                @$item->model,
                @$item->reportedTimeZone,
            );

I have tried a number of things but I either get an error or NULL.

Thanks.

Barmar
  • 741,623
  • 53
  • 500
  • 612
Carlos
  • 11
  • 2

0 Answers0