خرید بک لینک

Vote count: 0

Array
    (
        [0] => stdClass Object
            (
                [rating] => 2
            )

    )

How do I get the rating value from this array

asked 5 mins ago

1 Answer

Vote count: 1

This value is an array containing elements of type stdClass. These elements have fields that can be accessed using element->field_name. Since you want to access the rating of the first element in your array (= at index 0), you should use

$array[0]->rating

answered 40 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 21 فروردين 1395 ساعت: 19:01

صفحه بندی