So I wants to take value from URL, I create simple PHP code for taking value from URL
<?php
if(isset($_POST["Search"])){
$url = $_POST["url"];
$value = (explode ('v=', $url));
$videoId = $value[1];
}
?>
This for taking value from this https://www.youtube.com/watch?v=value url and echo somewhere, but wants to take value from https://www.youtu.be/value , this also, but how? , work with both URLs