my problem is i have this array :
$stockImages = [
[
'name' => $large,
'type' => 'large',
'resolution' => $w.'x'.$h,
'size' => $lSize
]
]
I want to get this value $w i tried with it
{{$stockImages[1]->resolution($w)}}
but it didn't work
$stockImages[0]2. You are accessingresolutionlike a property in an object, change to$stockImages[0]['resolution']3. you already concat the $w and $h so it's now a string, tryexplode('x')to split the w and h->is object notation and it doesnt apply to arrays.