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

WBOY
Release: 2016-07-06 13:54:08
Original
1596 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
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template