- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
- array_unique: documentation ( source)
<?php
$str = <<<EOD
"Test"
'Test'
`Test`
(Test)
EOD;
preg_match_all("/.(\w+)./", $str,$match);
foreach($match as &$m) $m = array_unique($m);
var_dump($match);