There is a simple array $al_ext = array('bmp','png');
Displays
Array ( [0] => bmp [1] => png )
There is such an array $al_ext2 = array($cat['type']); $cat['type']
$al_ext2 = array($cat['type']); $cat['type']
is taken from the database, extensions are also listed separated by commas, but for some reason they are displayed
Array ( [0] => jpg,bmp )
Something I do not understand what the problem is.