Home > Backend Development > PHP Tutorial > php语句拼html语句的顺序问题

php语句拼html语句的顺序问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:31:47
Original
1104 people have browsed it

<code>      $pageList .= {$json['name']}
html;
            }
</code>
Copy after login
Copy after login

我用这种方法拼出来的顺序与我想要的顺序想法,有没有什么办法让它顺序颠倒呢

回复内容:

<code>      $pageList .= {$json['name']}
html;
            }
</code>
Copy after login
Copy after login

我用这种方法拼出来的顺序与我想要的顺序想法,有没有什么办法让它顺序颠倒呢

另外一种方法是:

<code>  $pageList = {$json['name']}
html
             . $pageList;
</code>
Copy after login

注意字符串结尾的时候,html要单独占一行。

<code>php</code><code>$arr = array_reverse($arr);
foreach($arr as $json){
 $pageList .= {$json['name']}
html;
}
</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