HTML_Table::addCol

HTML_Table::addCol – Ajoute une colonne

Synopsis

require_once 'HTML/Table.php';

int HTML_Table::addCol ( array $contents = = null , mixed $attributes = = null , string $type='TD' )

Description

Ajoute une colonne au tableau et retourne son identifiant de colonne.

Parameter

  • array $contents - Doit être un tableau indexé de contenus de cellules valides

  • mixed $attributes - Tableau associatif ou chaîne de caractères d'attributs de ligne

  • string $type - Type de cellule, soit 'th' , soit 'td'

Return value

int - l'identifiant pour la colonne

Note

This function can not be called statically.