Miscellanous utilities
| package | SimplePie |
|---|
absolutize_url($relative, $base)
atom_03_construct_type($attribs)
atom_10_construct_type($attribs)
atom_10_content_construct_type($attribs)
change_encoding(string $data, string $input, string $output) : string | boolean
stringRaw data in $input encoding
stringEncoding of $data
stringEncoding you want
stringbooleanFalse if we can't convert itcodepoint_to_utf8(integer $codepoint) : string
| static |
|---|
integerUnicode codepoint
stringUTF-8 charactercompress_parse_url($scheme= '', $authority= '', $path= '', $query= '', $fragment= '')
debug($sp)
element_implode($element)
encoding(string $charset) : string
This is automatically generated by create.php
To generate it, run php create.php on the command line, and copy the
output to replace this function.
stringCharacter set to standardise
stringStandardised nameentities_decode(string $data) : string
| deprecated | Use DOMDocument instead |
|---|
stringInput data
stringOutput dataerror($message, $level, $file, $line)
fix_protocol($url, $http = 1)
get_build()
Uses the git index if it exists, otherwise uses the modification time of the newest file.
get_curl_version()
get_element(string $realname, string $string) : array
| deprecated | Use DOMDocument instead (parsing HTML with regex is bad!) |
|---|
stringElement name (including namespace prefix if applicable)
stringHTML document
arrayis_isegment_nz_nc($string)
normalize_url($url)
output_javascript()
parse_date($dt)
parse_mime($mime)
parse_str(string $str) : array
Returns an associative array of name/value pairs, where the value is an array of values that have used the same name
| static |
|---|
stringThe input string.
arrayparse_url($url)
percent_encoding_normalization($match)
silence_errors($num, $str)
space_seperated_tokens($string)
time_hms($seconds)
uncomment_rfc822($string) : string
stringComment stripped stringwindows_1252_to_utf8(string $string) : string
| static |
|---|
stringWindows-1252 encoded string
stringUTF-8 encoded stringxml_encoding(string $data, \SimplePie_Registry $registry) : array
| todo | Add support for EBCDIC |
|---|
stringXML data
\SimplePie_RegistryClass registry
arrayPossible encodingschange_encoding_iconv($data, $input, $output)
change_encoding_mbstring($data, $input, $output)
Strip HTML comments
Parameters
$data
stringData to strip comments from
Returns
stringComment stripped string