phpcs adlı üyeden alıntı: mesajı görüntüle
$text = 'test::::deneme
test1::::deneme1
test2::::deneme2
test3::::deneme3
test4::::deneme4';
$lines = explode(PHP_EOL, $text);
$lines = array_map(fn($item) => explode('::::', $item), $lines);
$items = array_map(fn($item) => $item[0], $lines);
sonuc: ['test1', 'test2', 'test3']

test icin:
http://sandbox.onlinephpfunctions.co...6e9ca55c728191
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in C:wamp64wwwssindex.php on line 12

$lines = array_map(fn($item) => explode('::::', $item), $lines);


hata verdiği yer burası hocam.