Jump to content

[SOLVED] whoa thia is confusing


ohdang888

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.