ftp_base::features()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->features();

ftp_base::features() code WP 6.5.2

function features() {
	if(!$this->_exec("FEAT", "features")) return FALSE;
	if(!$this->_checkCode()) return FALSE;
	$f=preg_split("/[".CRLF."]+/", preg_replace("/[0-9]{3}[ -].*[".CRLF."]+/", "", $this->_message), -1, PREG_SPLIT_NO_EMPTY);
	$this->_features=array();
	foreach($f as $k=>$v) {
		$v=explode(" ", trim($v));
		$this->_features[array_shift($v)]=$v;
	}
	return true;
}