关于PHP数组的问题
数组:
111:222
333:444
555:666
如何利用PHP重组为以下
111:222
333:444
555:666
请高手函数该怎么写帮忙写一下 谢谢。
------解决方案--------------------请把数组原型给输出来看看... 遍历数组拼装.
------解决方案--------------------这不是数组而是字符串
$yx = ' 111:222</br><br /> 333:444</br><br /> 555:666</br>';<br />echo preg_replace(array('/br/', '/ /'), array('li', '<li>'), $yx);<br />
111:222
333:444
555:666
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