XMLDiff\Base::diff

(PECL xmldiff >= 0.8.0) Produce diff of two XML documents abstract public mixed XMLDiff\Base::diff ( mixed $from, mixed $to ) Abstract diff method to be implemented by inheriting classes. The basic purpose of this method is to produce diff of the two documents. The param order matters and will produce different output. Parameters: from Source XML document.

XMLDiff\Base::__construct

(PECL xmldiff >= 0.8.0) Constructor public XMLDiff\Base::__construct ( string $nsname ) Base constructor for all the worker classes in the xmldiff extension. Parameters: nsname Custom namespace name for the diff document. The default namespace is http://www.locus.cz/diffmark and that's enough to avoid namespace conflicts. Use this parameter if you want to change it for

wddx_serialize_vars

(PHP 4, PHP 5, PHP 7) Serialize variables into a WDDX packet string wddx_serialize_vars ( mixed $var_name [, mixed $... ] ) Creates a WDDX packet with a structure that contains the serialized representation of the passed variables. Parameters: var_name Can be either a string naming a variable or an array containing strings naming the variables or another array, etc.

wddx_serialize_value

(PHP 4, PHP 5, PHP 7) Serialize a single value into a WDDX packet string wddx_serialize_value ( mixed $var [, string $comment ] ) Creates a WDDX packet from a single given value. Parameters: var The value to be serialized comment An optional comment string that appears in the packet header. Returns: Returns the

wddx_packet_start

(PHP 4, PHP 5, PHP 7) Starts a new WDDX packet with structure inside it resource wddx_packet_start ([ string $comment ] ) Start a new WDDX packet for incremental addition of variables. It automatically creates a structure definition inside the packet to contain the variables. Parameters: comment An optional comment string. Returns: Returns a pack

wddx_packet_end

(PHP 4, PHP 5, PHP 7) Ends a WDDX packet with the specified ID string wddx_packet_end ( resource $packet_id ) Ends and returns the given WDDX packet. Parameters: packet_id A WDDX packet, returned by wddx_packet_start(). Returns: Returns the string containing the WDDX packet.

wddx_deserialize

(PHP 4, PHP 5, PHP 7) Unserializes a WDDX packet mixed wddx_deserialize ( string $packet ) Unserializes a WDDX packet. Parameters: packet A WDDX packet, as a string or stream. Returns: Returns the deserialized value which can be a string, a number or an array. Note that structures are deserialized into associative arrays.

wddx_add_vars

(PHP 4, PHP 5, PHP 7) Add variables to a WDDX packet with the specified ID bool wddx_add_vars ( resource $packet_id, mixed $var_name [, mixed $... ] ) Serializes the passed variables and add the result to the given packet. Parameters: packet_id A WDDX packet, returned by wddx_packet_start(). var_name Can be either a string naming a vari

simplexml_load_string

(PHP 5, PHP 7) Interprets a string of XML into an object SimpleXMLElement simplexml_load_string ( string $data [, string $class_name = "SimpleXMLElement" [, int $options = 0 [, string $ns = "" [, bool $is_prefix = false ]]]] ) Takes a well-formed XML string and returns it as an object. Parameters: data A well-formed XML string class_name

simplexml_load_file

(PHP 5, PHP 7) Interprets an XML file into an object SimpleXMLElement simplexml_load_file ( string $filename [, string $class_name = "SimpleXMLElement" [, int $options = 0 [, string $ns = "" [, bool $is_prefix = false ]]]] ) Convert the well-formed XML document in the given file to an object. Parameters: filename Path to the XML file Note: Libxml 2 unescapes the