codice:
preg_match_all('#<pippo>(.*)</pippo>#U', $str, $mth);
echo '<pre>';
print_r($mth[1]);