html::img

Generates an img tag

html::img($src, $attr = array())

Parameters

$src (string)
The url of the image
$attr (array)
Additional attributes for the image tag

Return values

string
the generated html