Skip to content

How to retrieve value from stdclass array in PHP?

foreach ($array as $obj)
{
    // Here you can access to every object value in the way that you want
    echo $obj->next_key_name;
}
See also  PHP code snippet - How to store javascript into a variable?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.