">
时间:2021-07-01 10:21:17 帮助过:28人阅读
- php
- $data = array("book-1", "book-10",
"book-100", "book-5");natsort($data);
print_r(array_reverse($data));- ?>
下面是它的输出结果:
Array ([0] => book-100
[1] => book-10
[2] => book-5
[3] => book-1
)
希望初学者们通过上面这段例子能够弄清PHP自然语言倒序的具体使用方式。
http://www.bkjia.com/PHPjc/446346.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/446346.htmlTechArticlePHP自然语言倒序示例如下 ? php $ data = array ("book-1","book-10", "book-100","book-5");natsort($data); print_r(array_reverse($data)); ? 下面是它的输出结果: Arr...