{@ $ext=substr($file->source_filename, -4); $ext=strtolower($ext); $extImg=in_array($ext,array('.jpg','jpeg','.gif','.png')); }