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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.