title: PHP: Check whether ID is from Vimeo or YouTube
body: <p>Is it possible in PHP to distinguish the different between a Vimeo ID (129565826) and a YouTube ID (Bo3bkdYHp_M)? They are both quite different, but wasn't sure the best way for PHP to know the difference? If I was using the full URLs, I could've done something like:</p>
  
  <pre><code>if (stripos($url,'youtube.com') === false) {
      //must be vimeo
  } else {
      //is youtube
  }
  </code></pre>
  
  <p>Any thoughts or help? Perhaps I could use <code>is_numeric</code>?</p>
  
  <p>Thanks,
  R</p>