title: Extract specific part of a string in PHP
body: <p>I was simply wondering what would be the simplest and most efficient way of extracting a certain part of a dynamic string in PHP?</p>
  
  <p>Per example, in this string:</p>
  
  <p><a href="http://www.dailymotion.com/video/xclep1_school-gyrls-something-like-a-party_music#hp-v-v13" rel="nofollow noreferrer">http://www.dailymotion.com/video/xclep1_school-gyrls-something-like-a-party_music#hp-v-v13</a></p>
  
  <p>I'd only like to extract (and insert in a variable) the: " xclep1_school-gyrls-something-like-a-party_music ".</p>
  
  <p>The main goal is to take this part, insert it to this URL: <a href="http://www.dailymotion.com/thumbnail/160x120/video/xclep1_school-gyrls-something-like-a-party_music" rel="nofollow noreferrer">http://www.dailymotion.com/thumbnail/160x120/video/xclep1_school-gyrls-something-like-a-party_music</a> so I can capture the thumbnail externally.</p>
  
  <p>Sorry if this is a "newbie" question and thank you very much for your time. Any hint/code/php reference is appreciated.</p>