src/bbn/html/element.php
public function append($ele)
  {
    $args = \func_get_args();
    foreach ( $args as $ele ){
      if ( !isset($this->content) ){
        if ( \is_array($ele) && isset($ele[0]) ){
          $this->content = $ele;
        }
        else{
          $this->content = \is_object($ele) ? [$ele] : $ele;
        }
      }
      else if ( \is_array($this->content) ){
        if ( \is_array($ele) ){
          array_merge($this->content, $ele);
        }
        else{
          array_push($this->content, $ele);
        }
      }
      else if ( \is_string($this->content) ){
        if ( \is_array($ele) ){
          foreach ( $ele as $e ){
            $this->content .= $e->html();
          }
        }
        else{
          $this->content .= \is_object($ele) ? $ele->html() : $ele;
        }
      }
    }
    return $this;
  }
public function append($ele)
  {
    $args = \func_get_args();
    foreach ( $args as $ele ){
      if ( !isset($this->content) ){
        if ( \is_array($ele) && isset($ele[0]) ){
          $this->content = $ele;
        }
        else{
          $this->content = \is_object($ele) ? [$ele] : $ele;
        }
      }
      else if ( \is_array($this->content) ){
        if ( \is_array($ele) ){
          array_merge($this->content, $ele);
        }
        else{
          array_push($this->content, $ele);
        }
      }
      else if ( \is_string($this->content) ){
        if ( \is_array($ele) ){
          foreach ( $ele as $e ){
            $this->content .= $e->html();
          }
        }
        else{
          $this->content .= \is_object($ele) ? $ele->html() : $ele;
        }
      }
    }
    return $this;
  }
public function append ( $ ele ) { $ args = \ func_get_args ( ) ; foreach ( $ args as $ ele ) { if ( ! isset ( $ this -> content ) ) { if ( \ is_array ( $ ele ) && isset ( $ ele [ 0 ] ) ) { $ this -> content = $ ele ; } else { $ this -> content = \ is_object ( $ ele ) ? [ $ ele ] : $ ele ; } } else if ( \ is_array ( $ this -> content ) ) { if ( \ is_array ( $ ele ) ) { array_merge ( $ this -> content , $ ele ) ; } else { array_push ( $ this -> content , $ ele ) ; } } else if ( \ is_string ( $ this -> content ) ) { if ( \ is_array ( $ ele ) ) { foreach ( $ ele as $ e ) { $ this -> content .= $ e -> html ( ) ; } } else { $ this -> content .= \ is_object ( $ ele ) ? $ ele -> html ( ) : $ ele ; } } } return $ this ; }
Add an element to the content, or a string if it's one

@param string|bbn\html\element $ele
Add an element to the content or a string if it s one