public static function image($src, $alt = null, $attribs = array())
    {
        $attribs = array_merge(array('src'=>$src), $attribs);
        if ($alt) {
            $attribs['alt'] = htmlentities($alt);
        }
        
        return self::tag('img', null, $attribs);
    }
public static function image($src, $alt = null, $attribs = array())
    {
        $attribs = array_merge(array('src'=>$src), $attribs);
        if ($alt) {
            $attribs['alt'] = htmlentities($alt);
        }
        
        return self::tag('img', null, $attribs);
    }
public static function image ( $ src , $ alt = null , $ attribs = array ( ) ) { $ attribs = array_merge ( array ( 'src' => $ src ) , $ attribs ) ; if ( $ alt ) { $ attribs [ 'alt' ] = htmlentities ( $ alt ) ; } return self :: tag ( 'img' , null , $ attribs ) ; }
Generate an img tag
@param string $src
@param string $alt
@param array $attribs
@return string
Generate an img tag