SimplePie_IRI::set_scheme

Advertisement

Summery Summery

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

Syntax Syntax

SimplePie_IRI::set_scheme( string $scheme )

Parameters Parameters

$scheme

(string) (Required)

Return Return

(bool)

Source Source

File: wp-includes/SimplePie/IRI.php

		elseif (!preg_match('/^[A-Za-z][0-9A-Za-z+\-.]*$/', $scheme))
		{
			$this->scheme = null;
			return false;
		}
		else
		{
			$this->scheme = strtolower($scheme);
		}
		return true;
	}

	/**
	 * Set the authority. Returns true on success, false on failure (if there are
	 * any invalid characters).
	 *
	 * @param string $authority

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.