<?php $string = '<green>hello <red>aydin</red></green>'; $matches = array(); preg_match('(<.+?>)(.+?)(</.*>)', $string, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.