original_string: public static function img($src, $alt, array $attributes = null) {
          $attributes = (array)$attributes;
          $attributes['src'] = $src;
          $attributes['alt'] = $alt;
  
          return self::empty_tag('img', $attributes);
      }
code: public static function img($src, $alt, array $attributes = null) {
          $attributes = (array)$attributes;
          $attributes['src'] = $src;
          $attributes['alt'] = $alt;
  
          return self::empty_tag('img', $attributes);
      }
code_tokens: public static function img ( $ src , $ alt , array $ attributes = null ) { $ attributes = ( array ) $ attributes ; $ attributes [ 'src' ] = $ src ; $ attributes [ 'alt' ] = $ alt ; return self :: empty_tag ( 'img' , $ attributes ) ; }
docstring: Generates a simple image tag with attributes.
  
  @param string $src The source of image
  @param string $alt The alternate text for image
  @param array $attributes The tag attributes (array('height' => $max_height, 'class' => 'class1') etc.)
  @return string HTML fragment
docstring_tokens: Generates a simple image tag with attributes .