Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. <?
  2. $string = 'this is <em>first</em> test';
  3.  
  4. preg_match('/<.+?>/', $string, $matches);
  5.  
  6. echo '<pre>';
  7. print_r($matches);
  8. echo '</pre>';
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement