Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $string = 'this is <em>first</em> test';
- preg_match('/<.+?>/', $string, $matches);
- echo '<pre>';
- print_r($matches);
- echo '</pre>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement