youtube()
Embeds a Youtube video by URL in an iframe
youtube(string $url, array $options = [ ], array $attr = [ ]): string|null
Parameters
Name | Type | Default |
---|---|---|
$urlrequired | string |
no default value |
$options | array |
[ ]
|
$attr | array |
[ ]
|
Return types
string
ornull
Examples
<?= youtube('https://www.youtube.com/watch?v=mbyzgeee2mg') ?>