ohdang888 Posted July 16, 2008 Share Posted July 16, 2008 ok so i want to grab the video id from the submitted url i had it working with this url: $post_url = " $video = strstr($post_url, "v="); $video = substr($video , 2); returned t8RmHjWCLB0 BUT, then i realized sometimes theres the feature part of the url $post_url = " $video = strstr($post_url, "v="); $video = substr($video , 2); returns t8RmHjWCLB0&feature=user how would i get the user id from that?? Thanks Link to comment https://forums.phpfreaks.com/topic/114976-solved-whoa-thia-is-confusing/ Share on other sites More sharing options...
awpti Posted July 16, 2008 Share Posted July 16, 2008 You wouldn't since it doesn't exist in that string. Link to comment https://forums.phpfreaks.com/topic/114976-solved-whoa-thia-is-confusing/#findComment-591318 Share on other sites More sharing options...
DoddsAntS Posted July 16, 2008 Share Posted July 16, 2008 Hi, Take another look at the substr() function specifically the 3rd parameter A Link to comment https://forums.phpfreaks.com/topic/114976-solved-whoa-thia-is-confusing/#findComment-591348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.