Phorm/Field.class.php
/**
	 * Returns the HTML field label.
	 *
	 * @param boolean $tag determines whether or not label is wrapped in <label> HTML (defaults to TRUE)
	 * @return string the HTML label tag
	 */
Returns the HTML field label.
@param boolean $tag determines whether or not label is wrapped in  HTML (defaults to TRUE)
@return string the HTML label tag
Returns the HTML field label . @param boolean $tag determines whether or not label is wrapped in HTML ( defaults to TRUE ) @return string the HTML label tag
public function label($tag=TRUE)
	{
		if($tag)
		{
			return sprintf('<label for="%s">%s</label>', (string) $this->get_attribute('id'), $this->label);
		}
		return $this->label;
	}
public function label ( $ tag = TRUE ) { if ( $ tag ) { return sprintf ( '<label for="%s">%s</label>' , ( string ) $ this -> get_attribute ( 'id' ) , $ this -> label ) ; } return $ this -> label ; }
Returns the HTML field label.
Returns the HTML field label .