- preg_match: documentation ( source)
- print_r: documentation ( source)
<?php
$str = 'WINNER_NIGHT_BLOCKS_COMBINATION : {2014-09-06,2014-09-13,2014-09-15,2014-09-17,2014-09-19,2014-09-21,2014-09-23,2014-09-25,2014-09-27}';
$matches = array();
if (preg_match('/^WINNER_NIGHT_BLOCKS_COMBINATION : \{(.*)\}$/i', $str, $matches)) {
print_r($matches);
} else {
echo "don't match!";
}