php - sscanf scans half of youtube url string instead some chars -


i work on code embed code of youtube video scanning url of video. problem %s ($embed) value of string embed code end. exmple if link https://www.youtube.com/watch?v=7b3_qsmpcd8&app=desktop , embed code 7b3_qsmpcd8 (after "https://www.youtube.com/embed/") when running code:

sscanf($link,"https://www.youtube.com/watch?v=%s&", $embed); 

i embed value: 7b3_qsmpcd8&app=desktop instead 7b3_qsmpcd8. wrong in code? tnx!


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -