object(stdClass)#8 (2) { ["schema"]=> string(894) "" ["any&q" /> object(stdClass)#8 (2) { ["schema"]=> string(894) "" ["any&q">
Home Backend Development PHP Tutorial 调用接口有关问题

调用接口有关问题

Jun 13, 2016 am 10:14 AM
email protected quot

调用接口问题
返回的数据用var_dump输出是:

object(stdClass)#7 (2) { ["GetCustomerListResult"]=> object(stdClass)#8 (2) { ["schema"]=> string(894) "" ["any"]=> string(21628) "
[email protected]:14:47+08:0043889信息技术有限公司
信息技术有限公司
[email protected]:20:45+08:0043891教育
商务大厦东三楼
[email protected]:27:01+08:0043893留学
国际大厦1号楼
[email protected]:30:17+08:0043894国联
北园18-19幢
[email protected]:32:21+08:0043896教育
浙江
[email protected]:34:29+08:0097479上海
上海
[email protected]:01:56+08:0097688南京
南京
[email protected]:40:49+08:0097690广州
广州
[email protected]:51:40+08:0097691深圳
深圳
[email protected]:53:56+08:0097692苏州
苏州
[email protected]:56:23+08:0097693常州
常州
[email protected]:58:26+08:0097699无锡
无锡

现在要把它处理好保存到数据库……
怎么办?

------解决方案--------------------
$str=$obj->GetCustomerListResult->any; 得到字符串,然后用正则函数、字符函数把字符串处理好,再入库
------解决方案--------------------

PHP code
$s = $v) {  $res[] = array(    'price' => $v,    'email' => $r[2][$i],    'date' => date('Y-m-d H:i:s', strtotime(str_replace('T', ' ', $r[3][$i]))),    'customer' => $r[4][$i],    );}print_r($res);<div class="clear">
                 
              
              
        
            </div>
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use email, smtplib, poplib, imaplib modules to send and receive emails in Python How to use email, smtplib, poplib, imaplib modules to send and receive emails in Python May 16, 2023 pm 11:44 PM

The journey of an email is: MUA: MailUserAgent - Mail User Agent. (i.e. email software similar to Outlook) MTA: MailTransferAgent - Mail transfer agent, which is those email service providers, such as NetEase, Sina, etc. MDA: MailDeliveryAgent - Mail delivery agent. A server of the Email service provider sender->MUA->MTA->MTA->if

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

In Java, can we declare a top-level class as protected or private? In Java, can we declare a top-level class as protected or private? Sep 12, 2023 pm 07:21 PM

No, we cannot declare top-level classes as private or protected. It can be public or default (no modifiers). If there are no modifiers, there should be default access. Syntax //Atoplevelclass publicclassTopLevelClassTest{ //Classbody} If a top-level class is declared as private, the compiler will report an error, prompting "The modifier private is not allowed here." This means that top-level classes cannot be private, the same applies to protected access

Tutorial on how to insert attachments into win10 mailbox Tutorial on how to insert attachments into win10 mailbox Jan 07, 2024 pm 12:14 PM

Many users need to send emails for work in their daily lives, and some even need to attach various plug-in materials for communication. So how to insert attachments? Let’s take a look at the detailed tutorial below. How to insert attachments to win10 mailbox: 1. Open the mailbox 2. Click the "New Mail" icon in the upper left corner 3. Click "Insert" in the upper right corner 4. Click "Attachment" in the upper right corner 5. Select the required "Attachment" 6. Complete

Java programs display different access levels Java programs display different access levels Aug 19, 2023 pm 10:09 PM

Access modifiers are used to set the feature of visibility of some particular classes, interfaces, variables, methods, constructors, data members, and the setter methods in Java programming language. In Java environment, we have different types of access modifiers. Default - If we declare a function, it will only be visible in a specific package. Private- If we declare a function, it will be available only in a specific class

Email in Yii framework: Implementing email sending Email in Yii framework: Implementing email sending Jun 21, 2023 am 08:49 AM

The Yii framework is a high-performance, open source web development framework with efficient routing and modularity mechanisms that is ideal for quickly developing complex web applications. Among them, sending emails is one of the inevitable functions of any application. In the Yii framework, it is very simple to implement email sending, and it also provides many customization options and rich business logic support. 1. Email configuration in the Yii framework In the Yii framework, the configuration file is a very important resource, used to configure the basic information of the application and various groups.

What is the method for springboot hutool to integrate email? What is the method for springboot hutool to integrate email? May 11, 2023 pm 12:55 PM

Content introduction This article introduces two ways to send email files. Springboot integrates email to send files. Springboot uses hutool to integrate email to send files. To send email files, you need to enable popspringboot to integrate email to send files. Import depends on org.springframework.bootspring-boot-starter-mail configuration file spring: mail:default-encoding:utf-8host:smtp.aliyun.comusername:email account password:password send email test

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没有关问题 不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没有关问题 Jun 13, 2016 am 10:15 AM

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没问题。

See all articles