WordPress at Your Fingertips
function is not described

SimplePie_IRI::set_port() public WP 1.0

Set the port. Returns true on success, false on failure (if there are any invalid characters).

{} It's a method of the class: SimplePie_IRI{}

No Hooks.

Return

true|false.

Usage

$SimplePie_IRI = new SimplePie_IRI();
$SimplePie_IRI->set_port( $port );
$port(string) (required)
-

Code of SimplePie_IRI::set_port() WP 5.8.2

public function set_port($port)
{
	if ($port === null)
	{
		$this->port = null;
		return true;
	}
	elseif (strspn($port, '0123456789') === strlen($port))
	{
		$this->port = (int) $port;
		$this->scheme_normalization();
		return true;
	}

	$this->port = null;
	return false;
}