Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = 'http://thumb.mais.uol.com.br/15516553-medium.jpg?ver=1';
- preg_match("/^.*(uol.com.br/)(d+)-*/", $url, $valores);
- echo $valores[2]; // seu id ficará na posição [2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement