Creates an <iframe>
html tag.
iframe($src, $name, $class, $id, $style, $data, $attr);
Parameter | Required | Default |
---|---|---|
$src | no | null |
$title | no | null |
$class | no | null |
$id | no | null |
$style | no | null |
$data | no | null |
$attr | no | null |
string
Usage:
echo iframe('https://remove-host.com/file.html','Remote File', 'my-iframe');
Result:
<iframe src="https://remote-host.com/file.html" title="Remote File" class="my-iframe"></iframe>