- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$str = "* { [Strongly Disagree] [Disagree] [Agree] [Strongly Agree] }";
preg_match_all("/\[(.+?)\]/", $str, $match1);
preg_match_all("/[^]]/", $str, $match2);
var_dump($match1);
var_dump($match2);