function autovalue($fieldname, $default = null) {
		if ($this->autocomplete !== null) {
			$fieldname = rtrim($fieldname, '[]');
			if (isset($this->autocomplete[$fieldname])) {
				return $this->autocomplete[$fieldname];
			}
		}

		// no auto complete value found
		return $default;
	}
function autovalue($fieldname, $default = null) {
		if ($this->autocomplete !== null) {
			$fieldname = rtrim($fieldname, '[]');
			if (isset($this->autocomplete[$fieldname])) {
				return $this->autocomplete[$fieldname];
			}
		}

		// no auto complete value found
		return $default;
	}
function autovalue ( $ fieldname , $ default = null ) { if ( $ this -> autocomplete !== null ) { $ fieldname = rtrim ( $ fieldname , '[]' ) ; if ( isset ( $ this -> autocomplete [ $ fieldname ] ) ) { return $ this -> autocomplete [ $ fieldname ] ; } } // no auto complete value found return $ default ; }
Retrieve autocomplete value for given field or null.

@return mixed or null
Retrieve autocomplete value for given field or null .