Converts a unicode codepoint to a UTF-8 character
static string
codepoint_to_utf8
(int $codepoint)
-
int
$codepoint: Unicode codepoint
Decode HTML entities
static string
entities_decode
(string $data)
Similar to parse_str()
Returns an associative array of name/value pairs, where the value is an array of values that have used the same name
static array
parse_str
(string $str)
-
string
$str: The input string.
Re-implementation of PHP 5's stripos()
Returns the numeric position of the first occurrence of needle in the haystack string.
static bool
stripos
(object $haystack, string $needle, [int $offset = 0])
-
object
$haystack
-
string
$needle: Note that the needle may be a string of one or more characters. If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
-
int
$offset: The optional offset parameter allows you to specify which character in haystack to start searching. The position returned is still relative to the beginning of haystack.
Converts a Windows-1252 encoded string to a UTF-8 encoded string
static string
windows_1252_to_utf8
(string $string)
-
string
$string: Windows-1252 encoded string
void
absolutize_url
( $relative, $base)
void
array_unique
( $array)
void
atom_03_construct_type
( $attribs)
void
atom_10_construct_type
( $attribs)
void
atom_10_content_construct_type
( $attribs)
void
change_encoding
( $data, $input, $output)
void
compress_parse_url
([ $scheme = ''], [ $authority = ''], [ $path = ''], [ $query = ''], [ $fragment = ''])
-
$scheme
-
$authority
-
$path
-
$query
-
$fragment
If a file has been cached, retrieve and display it.
This is most useful for caching images (get_favicon(), etc.), however it works for all cached files. This WILL NOT display ANY file/image/page/whatever, but rather only display what has already been cached by SimplePie.
void
display_cached_file
(str $identifier_url, [str $cache_location = './cache'], [str $cache_extension = 'spc'], [str $cache_class = 'SimplePie_Cache'], [str $cache_name_function = 'md5'])
-
str
$identifier_url: URL that is used to identify the content. This may or may not be the actual URL of the live content.
-
str
$cache_location: Location of SimplePie's cache. Defaults to './cache'.
-
str
$cache_extension: The file extension that the file was cached with. Defaults to 'spc'.
-
str
$cache_class: Name of the cache-handling class being used in SimplePie. Defaults to 'SimplePie_Cache', and should be left as-is unless you've overloaded the class.
-
str
$cache_name_function: Obsolete. Exists for backwards compatibility reasons only.
void
element_implode
( $element)
void
encoding
( $charset)
void
error
( $message, $level, $file, $line)
-
$message
-
$level
-
$file
-
$line
void
fix_protocol
( $url, [ $http = 1])
void
get_element
( $realname, $string)
void
htmlspecialchars_decode
( $string, $quote_style)
void
is_isegment_nz_nc
( $string)
void
is_subclass_of
( $class1, $class2)
void
normalize_url
( $url)
void
output_javascript
()
void
percent_encoding_normalization
( $match)
void
remove_dot_segments
( $input)
void
space_seperated_tokens
( $string)
Strip HTML comments
string
strip_comments
(string $data)
-
string
$data: Data to strip comments from
void
time_hms
( $seconds)
Remove RFC822 comments
string
uncomment_rfc822
( $string, string $data)
-
string
$data: Data to strip comments from
-
$string
Remove bad UTF-8 bytes
PCRE Pattern to locate bad bytes in a UTF-8 string comes from W3C FAQ: Multilingual Forms (modified to include full ASCII range)
string
utf8_bad_replace
(string $str)
-
string
$str: String to remove bad UTF-8 bytes from
Detect XML encoding, as per XML 1.0 Appendix F.1
array
xml_encoding
(string $data)