It is very difficult to deal with php array.

now there is such an array:

$a = [1,2,3,4,5];

I want to get the following result through some algorithm:

1,2
1,3
1,4
1,5
2,3
2,4
2,5
3,4
3,5
4,5

is a group of two or two, and there is also a possibility of a group of three
. How is that calculated?
do you know that there are great gods?

Php
May.07,2021

any number of combinations are supported, where 3 in the combine ($arr, 3) method represents a group of three.
these combinations remove combinations that have duplicate numbers.

  

this wave of operations is awesome

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaa347-1fb5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaa347-1fb5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?