I have values in some array I want to re index the whole array such that the the first value key should be 1 instead of zero i.e.
By default in PHP the array key st
I think it is simple as that:
$x = array("a","b","c"); $y =array_combine(range(1, count($x)), $x); print_r($y);