Con preg_match_all hai già quello che ti occorre:
Codice PHP:
<?php
$stringa = '( bla bla bla , bbb bbb bbb)';
preg_match_all('#\((.*?),#',$stringa,$matches, PREG_PATTERN_ORDER);
print_r($matches);
?>
Con preg_match_all hai già quello che ti occorre:
Codice PHP:
<?php
$stringa = '( bla bla bla , bbb bbb bbb)';
preg_match_all('#\((.*?),#',$stringa,$matches, PREG_PATTERN_ORDER);
print_r($matches);
?>
Pensate i programmi a librerie, e innalzate il livello d'astrazione