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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.