K
K
kluziotigor2018-09-14 19:08:27
PHP
kluziotigor, 2018-09-14 19:08:27

How to get combinations of characters in php?

Let's say there are characters "123"
It is necessary to make possible combinations from all these characters, for example:
1
2
3
11
12
22
..
111
112
121
211
..
113
131
etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Chesnokov, 2018-09-14
@kluziotigor

Iterating over possible values ​​in PHP?

D
Dmitry, 2018-09-14
@demon416nds

so in a nested loop
or recursively

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question