public function getDailyMotionId($url)
    {
        if (preg_match('!^.+dailymotion\.com/(video|hub)/([^_]+)[^#]*(#video=([^_&]+))?|(dai\.ly/([^_]+))!', $url, $m)) {
            if (isset($m[6])) {
                return $m[6];
            }
            if (isset($m[4])) {
                return $m[4];
            }
            return $m[2];
        }
        return false;
    }
public function getDailyMotionId($url)
    {
        if (preg_match('!^.+dailymotion\.com/(video|hub)/([^_]+)[^#]*(#video=([^_&]+))?|(dai\.ly/([^_]+))!', $url, $m)) {
            if (isset($m[6])) {
                return $m[6];
            }
            if (isset($m[4])) {
                return $m[4];
            }
            return $m[2];
        }
        return false;
    }
public function getDailyMotionId ( $ url ) { if ( preg_match ( '!^.+dailymotion\.com/(video|hub)/([^_]+)[^#]*(#video=([^_&]+))?|(dai\.ly/([^_]+))!' , $ url , $ m ) ) { if ( isset ( $ m [ 6 ] ) ) { return $ m [ 6 ] ; } if ( isset ( $ m [ 4 ] ) ) { return $ m [ 4 ] ; } return $ m [ 2 ] ; } return false ; }
Extracts the daily motion id from a daily motion url.
Returns false if the url is not recognized as a daily motion url.
Extracts the daily motion id from a daily motion url . Returns false if the url is not recognized as a daily motion url .