How do i get value from this return? Im looking to get the value of 2.

array
  79 =>
    object(stdClass)[356]
      public 'parent' => int 8
      public 'type' => string 'meta' (length=4)
      public 'name' => string 'limitcounter' (length=12)
      public 'value' => string '2' (length=1)

Recommended Answers

echo $array[79]->value;

Something like that should do the trick, obviously depends on what the variable that contains the array is named.

Jump to Post

All 2 Replies

echo $array[79]->value;

Something like that should do the trick, obviously depends on what the variable that contains the array is named.

yeah, I figured that out after I posted.. Thank you!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.