Home > Backend Development > PHP Tutorial > WeChat public platform developer - WeChat development, php variables in xml cannot be parsed

WeChat public platform developer - WeChat development, php variables in xml cannot be parsed

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-06 13:54:08
Original
1679 people have browsed it

WeChat public platform developer - WeChat development, php variables in xml cannot be parsed
This is a graphic message returned to WeChat, in which
$item_str
in xml is dynamic, So variables need to be introduced, but it seems that the variables inside cannot be parsed. How to solve this problem?

Reply content:

WeChat public platform developer - WeChat development, php variables in xml cannot be parsed
This is a graphic message returned to WeChat, in which
$item_str
in xml is dynamic, So variables need to be introduced, but it seems that the variables inside cannot be parsed. How to solve this problem?

Variables can be parsed, and sprintf can also be used successfully. The problem lies in the previous variables. The thing I passed in is not an array, so an error occurred. I still need to debug and check more

Use adding points to solve the problem, for example:

<code><Articles>" . $item_str . "</Articles></code>
Copy after login
Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template