I am very new to php.I have a foreach loop
foreach ($sizes as $w => $h) {
echo 'index is '.$w.' and value is '.$h;}
I need to assigning these values (I have 2 values) in to variables
$firstItem = foreach value 1
$secondItem = foreach value 2
How can I do this Thanks
list($firstItem, $secondItem) = $sizes$sizesstructure?