This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Function `parse_yturl()` from <http://stackoverflow.com/a/10524505/624466> | |
| /** | |
| * Check if the input string is a valid YouTube URL | |
| * and try to extract the YouTube Video ID from it. | |
| * | |
| * @author Stephan Schmitz <eyecatchup@gmail.com> | |
| * @param $url string The string that shall be checked. |
NewerOlder