WPDev.one
Core Class

Misc

class Misc // Constructor: function Object() { [native code] }

Miscellaneous utilities

Methods 37 methods

Method / Return Description
time_hms()
void

No description available.

Parameters: $seconds: mixed
absolutize_url()
void

No description available.

Parameters: $relative: mixed, $base: mixed
get_element()
array

Get a HTML/XML element from a HTML string

Parameters: $realname: mixed, $string: mixed
element_implode()
void

No description available.

Parameters: $element: mixed
error()
void

No description available.

Parameters: $message: mixed, $level: mixed, $file: mixed, $line: mixed
fix_protocol()
void

No description available.

Parameters: $url: mixed, $http: mixed
array_merge_recursive()
void

No description available.

Parameters: $array1: mixed, $array2: mixed
parse_url()
void

No description available.

Parameters: $url: mixed
compress_parse_url()
void

No description available.

Parameters: $scheme: mixed, $authority: mixed, $path: mixed, $query: mixed, $fragment: mixed
normalize_url()
void

No description available.

Parameters: $url: mixed
percent_encoding_normalization()
void

No description available.

Parameters: $match: mixed
windows_1252_to_utf8()
string

Converts a Windows-1252 encoded string to a UTF-8 encoded string

Parameters: $string: mixed
change_encoding()
(string

Change a string from one encoding to another

Parameters: $data: mixed, $input: mixed, $output: mixed
change_encoding_mbstring()
void

No description available.

Parameters: $data: mixed, $input: mixed, $output: mixed
change_encoding_iconv()
void

No description available.

Parameters: $data: mixed, $input: mixed, $output: mixed
change_encoding_uconverter()
(string

No description available.

Parameters: $data: mixed, $input: mixed, $output: mixed
encoding()
string

Normalize an encoding name

Parameters: $charset: mixed
get_curl_version()
void

No description available.

strip_comments()
string

Strip HTML comments

Parameters: $data: mixed
parse_date()
void

No description available.

Parameters: $dt: mixed
entities_decode()
string

Decode HTML entities

Parameters: $data: mixed
uncomment_rfc822()
string

Remove RFC822 comments

Parameters: $string: mixed
parse_mime()
void

No description available.

Parameters: $mime: mixed
atom_03_construct_type()
void

No description available.

Parameters: $attribs: mixed
atom_10_construct_type()
void

No description available.

Parameters: $attribs: mixed
atom_10_content_construct_type()
void

No description available.

Parameters: $attribs: mixed
is_isegment_nz_nc()
void

No description available.

Parameters: $string: mixed
space_separated_tokens()
void

No description available.

Parameters: $string: mixed
codepoint_to_utf8()
string

Converts a unicode codepoint to a UTF-8 character

Parameters: $codepoint: mixed
parse_str()
array

Similar to parse_str()

Parameters: $str: mixed
xml_encoding()
array

Detect XML encoding, as per XML 1.0 Appendix F.1

Parameters: $data: mixed, $registry: mixed
output_javascript()
void

No description available.

get_build()
void

Get the SimplePie build timestamp

get_default_useragent()
string

Get the default user agent string

debug()
void

Format debugging information

Parameters: $sp: mixed
silence_errors()
void

No description available.

Parameters: $num: mixed, $str: mixed
url_remove_credentials()
string

Sanitize a URL by removing HTTP credentials.

Parameters: $url: mixed

Properties

Property / Type Description
$SIMPLEPIE_BUILD
mixed
public
No description available.

Class Information

Source File
wp-includes/SimplePie/src/Misc.php
Advertisement