Advertisement
Guest User

Untitled

a guest
Nov 1st, 2013
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. https://www.facebook.com/photo.php?v=[ID]
  2.  
  3. https://www.facebook.com/photo.php?v=[ID]&type=2&theater
  4.  
  5. $url = 'https://www.facebook.com/photo.php?v=[ID]&type=2&theater';
  6. parse_str( parse_url( $url, PHP_URL_QUERY ), $params );
  7. // $params['v'] will hold the [ID] you need.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement