PHP。 如何在foreach中添加变量

Code:

@foreach($shoppinglists->getShopPrices() as $sh)
            <tr>
                @foreach($shoppinglists->getShopNames() as $ss)
                    <td>{{$sh->$ss->shop_name}}</td>
                    @endforeach
            </tr>

$ss->shop_name returns property of $sh, but with this code I get error:

Object of class stdClass could not be converted to string

I expect the result of the code to be:

<td>{{$sh->shop1}}</td>
<td>{{$sh->shop2}}</td>
<td>{{$sh->shop3}}</td>
...