youtube($url, $width = null, $height = null, $class = null)

Embeds a Youtube video by URL in an iframe

  • $url (string)
  • $width (mixed)
  • $height (mixed)
  • $class (string)
  • return (string)

Example

<?= youtube('https://www.youtube.com/watch?v=mbyzgeee2mg') ?>