[ad_1]
You can try with reset array function of PHP to get first element of array
$imageData = reset($image);
echo $imageData->getData("file");
0
[ad_2]
solved How to fix “Call to a member function xy on array” without using foreach?
[ad_1]
You can try with reset array function of PHP to get first element of array
$imageData = reset($image);
echo $imageData->getData("file");
0
[ad_2]
solved How to fix “Call to a member function xy on array” without using foreach?