PHP create array where key and value is same May 29, 2023 by Tarik How about array_combine? $b = array_combine(range(1,10), range(1,10));