Hi guys, Lets say I wanted to select a certain part of a link such as http://megavideo.com/?v=SQPDLVO0 But what if i just wanted the SQPDLVO0 part what should i do. Thanks a lot
If the format of the link is always like that str_replace will do: $link="http://megavideo.com/?v=SQPDLVO0"; $linkCode=str_replace("http://megavideo.com/?v=","",$link); echo $linkCode;