I want to concatenate two similar range (for unicode number conversion purpose),to make an array like this:
$nums = [
0=> 0,
1=> 1,
2=> 2,
3=> 3,
4=> 4,
5=> 5,
6=> 6,
7=> 7,
8=> 8,
9=> 9,
10=> 0,
11=> 1,
12=> 2,
13=> 3,
14=> 4,
15=> 5,
16=> 6,
17=> 7,
18=> 8,
19=> 9
];
I can do this simply with concatenating like this code:
$nums=array_merge(range(0,9),range(0,9));
But I am looking for more efficient or a dedicated PHP function for this job. I will appriciate any kind of method or mention dedicated function existence.
eval.inPresentation.