- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$row = 'ARTISTA - BRANO - ANNO';
\preg_match_all('/[a-zA-Z]+/', $row, $matches );
var_dump( $matches );
$row = 'ARTISTA -';
\preg_match_all('/[a-zA-Z]+/', $row, $matches );
var_dump( $matches );