Why doesn't this work?
$statement = array(
images_name[0] => 'small_01.jpg',
images_name[1] => 'large_01.jpg',
);
foreach ($statement->images as $image):
if (strpos($image->name, 'small')) {
echo ('yes');
}
endforeach
I can print the image name without problem but strpos
is not working.