Jump to content

Remove and replace words with php


V

Recommended Posts

I'm not sure how to do this.. I'm using a Jquery script that expands YouTube videos when you click on a link or thumbnail but it works only with this type of YouTube url - for a full screen video.

 

 

but generally a youtube link is like this.

 

 

I need to remove "watch", "?", and replace "=" with "/"

 

I submit these links via a form input. Instead of manually changing the URL it would be neat if I can just paste it and let php do the rest.

 

 

Link to comment
https://forums.phpfreaks.com/topic/206219-remove-and-replace-words-with-php/
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.