Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 321 Bytes

File metadata and controls

11 lines (10 loc) · 321 Bytes

img

Prepares the HTML tag "img".

img($src, $attrs = array())

  • $src (string) - image url.
  • $attrs (array) - Tag attributes.
echo img('/assets/images/pic1.jpg', ['title'=>'My picture']);
# Use the faker function to get a fake image.
echo img(faker(['imageUrl'=>[200,100]]), ['title'=>'My picture']);