gpt4 book ai didi

php - PHP 中的组合、配置和排列

转载 作者:可可西里 更新时间:2023-11-01 13:09:04 27 4
gpt4 key购买 nike

在 PHP 中生成数组的所有组合、配置和排列的最有效方法是什么?

最佳答案

这是获取所有排列的代码:

http://php.net/manual/en/function.shuffle.php#90615

有了获取幂集的代码,排列是最大长度的排列,幂集应该是所有的组合。我不知道倾向是什么,所以如果你能解释一下,那会有所帮助。

关于php - PHP 中的组合、配置和排列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1679605/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com