PHP自然语言倒序示例如下
<ol class="dp-xml"> <li class="alt"><span><strong><font color="#006699"><span class="tag"></span><span class="tag-name">php</span></font></strong><span> </span></span></li> <li class="alt"><span><span></span></span></li> <li class="alt"><span><span>$</span><span class="attribute"><font color="#ff0000">data</font></span><span> = </span><span class="attribute-value"><font color="#0000ff">array</font></span><span>("book-1", "book-10", <br>"book-100", "book-5");natsort($data); <br>print_r(array_reverse($data)); </span></span></li> <li class=""><span class="tag"></span></li> <li class=""> <span></span><span class="tag"><strong><font color="#006699">?></font></strong></span><span> </span> </li> </ol>
下面是它的输出结果:
Array ([0] => book-100
[1] => book-10
[2] => book-5
[3] => book-1
)
希望初学者们通过上面这段例子能够弄清PHP自然语言倒序的具体使用方式。