Home  >  Article  >  Backend Development  >  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

WBOY
WBOYOriginal
2016-07-06 13:54:081581browse

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>
Statement:
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