Hello,
Can the last two characters “-D” and “-M” be arrayed excluding data?
$kod = $db->prepare("SELECT kod FROM kodlar");
$kod->execute();
$kod_arr = $kod->fetchAll(PDO::FETCH_COLUMN);
[0] => UCE-CT213
[1] => UCE-CT213-D
[2] => UCE-CT213-M
[3] => UCE-CT220L
[4] => UCE-CT220L-D
[5] => UCE-CT220L-M
[6] => UCE-CT220S
[7] => UCE-CT220S-D
[8] => UCE-CT220S-M
[9] => UCE-CT221L
[10] => UCE-CT221L-D
[11] => UCE-CT221L-M
[12] => UCE-DS0290
[13] => UCE-DS0290-D
[14] => UCE-DS0290-M
[15] => UCE-DS0291
[16] => UCE-DS0291-D
[17] => UCE-DS0291-M
[18] => UCE-DSO212
[19] => UCE-DSO212-D
[20] => UCE-DSO212-M
[21] => UCE-DSO275
[22] => UCE-DSO275-D
[23] => UCE-DSO275-M