Creates an <object> html tag.
object($data, $type, $name, $class, $id, $style, $attr);| Parameter | Required | Default |
|---|---|---|
| $data | no | null |
| $type | no | null |
| $name | no | null |
| $class | no | null |
| $id | no | null |
| $style | no | null |
| $attr | no | null |
string
Usage:
echo object('video.mp4','video/mp4', null, 'my-video');Result:
<object type="video/mp4" data="video.mp4" class="my-video"></object>