youtube()
Embeds a Youtube video by URL in an iframe
youtube(string $url, array $options = [ ], array $attr = [ ]): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$url |
string |
– | |
$options |
array |
[ ] |
|
$attr |
array |
[ ] |
Return type
string
Example
<?= youtube('https://www.youtube.com/watch?v=mbyzgeee2mg') ?>