if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/\s]{11})%i', $url, $match)) {
return $match[1];
}
For further actions, you may consider blocking this person and/or reporting abuse
if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/\s]{11})%i', $url, $match)) {
return $match[1];
}
For further actions, you may consider blocking this person and/or reporting abuse
Jamir Hossain -
Hòa Nguyễn Coder -
Dawid Makowski -
Nasrul Hazim Bin Mohamad -
Top comments (0)