When executing the pannalesports api (which is an api for Data Capturing anyway), I use SimpleXMLElement to convert the data into an xml format so that I can intercept it. However, the error p.s. I used curl to capture it before turning it into curl
UncaughtexceptionExceptionwithmessageSerializationofSimpleXMLElement function deal_taobao_data ($ data ){
$ Data = serialize ($ data );
$ Data = str_replace ('O: 16: "SimpleXMLElement" ', 'A', $ data );
$ Arrstr = unserialize ($ data );
Return $
The following is the output of a two-dimensional array with SimpleXMLElement object, how can the inside of the SimpleXMLElement object all removed into a normal two-dimensional array.
Array ([0] = SimpleXMLElement Object ([Favtype] = 2 [freesum] =
Converts a SimpleXMLElement object to a PHP array. PHP provides the simplexml_load_string method to parse strings in XML format and return the SimpleXMLElement object. However, arrays are more suitable, so the simplexml_load_string method is also
The API to execute Pannalesports (it's a data-grabbing API anyway)
I use
SimpleXMLElementConvert data to XML format so I could intercept it. But there is always an error after a period of execution
P.s. I'm going to curl up with
PHP provides the Simplexml_load_string method to parse the XML format string and return the SimpleXMLElement object. However, the general array is more applicable, so there will be the need to convert to a normal array, this method of testing is
PHP provides the simplexml_load_string method to parse strings in XML format and return the SimpleXMLElement object. However, the general array is more suitable, so it will also be converted to a common array... PHP provides the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.